...
1name: Build & Release
2on:
3 push:
4 tags:
5 - 'v*'
6
7env:
8 GO_VERSION: "1.18.x"
9
10jobs:
11 build:
12 runs-on: "windows-2019"
13 steps:
14 - uses: actions/checkout@v3
15 - uses: actions/setup-go@v4
16 with:
17 go-version: ${{ env.GO_VERSION }}
18
19 - run: go build ./cmd/dmverity-vhd
20 - run: go build ./cmd/dmverity-vhd
21 env:
22 GOOS: linux
23 GOARCH: amd64
24
25 - uses: actions/upload-artifact@v3
26 with:
27 name: binaries
28 path: |
29 dmverity-vhd.exe
30 dmverity-vhd
31
32 create_release:
33 needs: build
34 runs-on: ubuntu-latest
35 steps:
36 - name: Download artifacts
37 uses: actions/download-artifact@v3
38 with:
39 name: binaries
40
41 - name: Publish release
42 uses: softprops/action-gh-release@v1
43 with:
44 prerelease: ${{ contains(github.ref, 'rc') }}
45 files: |
46 dmverity-vhd.exe
47 dmverity-vhd
48
View as plain text