From 21029c326b8e9af1f999b766d0eef6fd8e7e76d4 Mon Sep 17 00:00:00 2001 From: Benj Fassbind Date: Thu, 10 Feb 2022 14:22:17 +0100 Subject: [PATCH] Add release to CI --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8551f23d..5a475daab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,8 @@ name: CI on: pull_request: push: + tags: + - 'v*' branches: - 'main' @@ -81,3 +83,27 @@ jobs: RUN_LONG_TESTS: ${{ matrix.run_long_tests }} run: | make + + release: + name: release + needs: build + runs-on: ubuntu-20.04 + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Go + uses: actions/setup-go@v2 + + - name: Make Release + env: + GOBIN: /usr/local/bin + run: | + make release + + - name: Upload artifacts to GitHub Release + if: startsWith(github.event.ref, 'refs/tags') + uses: softprops/action-gh-release@v1 + with: + body: Release ${{ github.ref }} generated by the CI. + files: build/*