Skip to content

Commit

Permalink
Automate release process using a github action module (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikez committed Apr 8, 2022
1 parent 3353ad1 commit 6900ba2
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ jobs:
name: dist
path: 'dist/*'

publish-github:
strategy:
matrix:
go: ['1.16.x']
publish-github-release:
runs-on: ubuntu-latest
permissions:
contents: write
needs: dist

steps:
Expand All @@ -43,18 +42,16 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: dist
path: 'dist/*'
path: 'dist'

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Install tools
run: make -f Makefile.tools github-release

- name: Release
run: make -f Makefile.release publish-github
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
fail_on_unmatched_files: true
files: |
dist/*
publish-dockerhub:
strategy:
Expand Down

0 comments on commit 6900ba2

Please sign in to comment.