Update release flow #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" # Match all version tags (v1.0.0, v2.0.0-beta.1, etc.) | |
| jobs: | |
| main: | |
| name: Main | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for changelog generation | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.19" | |
| - name: Get dependencies | |
| run: make deps | |
| - name: Build | |
| run: make | |
| - name: Test | |
| run: go test | |
| - name: Run GoReleaser | |
| uses: goreleaser/goreleaser-action@v6 | |
| with: | |
| version: "~> v2" | |
| args: release --clean | |
| env: | |
| # set github personal access token in order to generate brew formula to external repository | |
| GITHUB_TOKEN: ${{ secrets.GH_PAT }} |