Add github releases

This commit is contained in:
2021-11-16 19:10:01 +01:00
parent 7d2209d390
commit 66f3436371
2 changed files with 47 additions and 5 deletions

View File

@ -29,6 +29,10 @@ jobs:
runs-on: ubuntu-latest
needs: tests
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
strategy:
matrix:
goos: [linux]
goarch: [amd64]
steps:
- uses: actions/checkout@v2
@ -40,3 +44,11 @@ jobs:
- name: Deploy image
run: make docker-push VERSION=$RELEASE_VERSION
- uses: wangyoucao577/go-release-action@v1.20
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: make build VERSION=$RELEASE_VERSION
extra_files: LICENSE README.md