-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 993 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 🚀 Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: write
pull-requests: write
jobs:
Release:
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@v4
- name: 🐹 Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: 💳 Create GitHub App Token
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
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 }}