fix(vhs): Install mli from run branch (#73) #29
This file contains 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: | |
branches: | |
- "main" | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
Release: | |
runs-on: Ubuntu-Latest | |
steps: | |
- name: π Checkout Repository | |
uses: actions/checkout@v4 | |
- name: π·οΈ Create a New Tag | |
id: tagpr | |
uses: Songmu/tagpr@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: πΉ Setup Go | |
if: ${{ steps.tagpr.outputs.tag != '' }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: π³ Create GitHub App Token | |
if: ${{ steps.tagpr.outputs.tag != '' }} | |
uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.PRIVATE_KEY }} | |
owner: ${{ github.repository_owner }} | |
repositories: "homebrew-formula" | |
- name: π Build and Rrelease with GoReleaser | |
if: ${{ steps.tagpr.outputs.tag != '' }} | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
args: release --clean --config=.github/goreleaser.yml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HOMEBREW_TAP_TOKEN: ${{ steps.app-token.outputs.token }} |