name: Build & Release on: push: tags: - 'v*' env: GO_VERSION: "1.18.x" jobs: build: runs-on: "windows-2019" steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - run: go build ./cmd/dmverity-vhd - run: go build ./cmd/dmverity-vhd env: GOOS: linux GOARCH: amd64 - uses: actions/upload-artifact@v3 with: name: binaries path: | dmverity-vhd.exe dmverity-vhd create_release: needs: build runs-on: ubuntu-latest steps: - name: Download artifacts uses: actions/download-artifact@v3 with: name: binaries - name: Publish release uses: softprops/action-gh-release@v1 with: prerelease: ${{ contains(github.ref, 'rc') }} files: | dmverity-vhd.exe dmverity-vhd