Skip to content

Setup go-releaser (#30) #1

Setup go-releaser (#30)

Setup go-releaser (#30) #1

Workflow file for this run

name: CI-post-merge
on:
push:
branches:
- master
jobs:
update-tag:
runs-on: ubuntu-latest
outputs:
new_version: ${{ steps.tag_version.outputs.new_version }}
steps:
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: minor
publish-binary:
runs-on: ubuntu-latest
needs: update-tag
steps:
- uses: actions/checkout@v4
with:
ref: v${{ needs.update-tag.outputs.new_version }}
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.23
- name: Generate GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
repositories: homebrew-tap
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAP_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}