Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mdb committed Feb 8, 2022
1 parent 55c2677 commit e6bbf5f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,24 @@ jobs:
go-version: 1.17
- name: Build
run: make

build-and-publish-release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build-snapshot
environment:
name: release
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Create release tag
run: make tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build & Release
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e6bbf5f

Please sign in to comment.