-
Notifications
You must be signed in to change notification settings - Fork 8
62 lines (55 loc) · 1.72 KB
/
Copy pathrelease-please.yml
File metadata and controls
62 lines (55 loc) · 1.72 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release Please
permissions: {}
defaults:
run:
shell: bash
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
release-please:
name: Release Please
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
contents: write # for create a release
pull-requests: write # for open a pull request
issues: write # for create labels
outputs:
should-release: ${{ steps.release-please.outputs.release_created }}
steps:
- uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
id: release-please
with:
release-type: simple
token: ${{ github.token }}
release:
name: Release
needs: release-please
if: ${{ needs.release-please.outputs.should-release == 'true' }}
timeout-minutes: 10
permissions:
contents: write # for create a release and push assets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 0
- uses: ./.github/actions/setup
- uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
id: app-token
with:
app-id: ${{ secrets.HOMEBREW_TAP_APP_ID }}
private-key: ${{ secrets.HOMEBREW_TAP_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: homebrew-tap
permission-contents: write
- run: goreleaser release --clean
env:
GITHUB_TOKEN: ${{ github.token }}
TAP_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}