Skip to content

Commit

Permalink
Add release to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
randombenj committed Feb 11, 2022
1 parent e8ec638 commit 21029c3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ name: CI
on:
pull_request:
push:
tags:
- 'v*'
branches:
- 'main'

Expand Down Expand Up @@ -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/*

0 comments on commit 21029c3

Please sign in to comment.