From 50cc5cd59c735c8ef196bdd9c7244e9755796451 Mon Sep 17 00:00:00 2001 From: Maksim An Date: Wed, 14 Sep 2022 10:29:18 -0700 Subject: [PATCH] test release github Signed-off-by: Maksim An --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..23f04a0361 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +on: push +name: Build & Release +env: + GO_VERSION: "1.18.x" +jobs: + build: + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: ${{ env.GO_VERSION }} + - run: go build ./cmd/dmverity-vhd + - run: go build ./cmd/dmverity-vhd + env: + GOOS: windows + GOARCH: amd64 + - uses: actions/upload-artifact@v2 + with: + name: binaries + path: | + dmverity-vhd + dmverity-vhd.exe + release: + if: startsWith(github.ref, 'refs/tags/v') + needs: build + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v2 + with: + name: binaries + - name: Publish release + uses: softprops/action-gh-release@v1 + with: + files: | + dmverity-vhd + dmverity-vhd.exe