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/*