Skip to content

Commit f4f71b6

Browse files
committed
use github deployments for releases
1 parent dbc46aa commit f4f71b6

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

.github/workflows/release-published.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,38 @@ on:
44
release:
55
types:
66
- published
7+
78
permissions:
89
contents: write
9-
workflows: write
10-
10+
deployments: write
11+
1112
jobs:
1213
publish:
1314
runs-on: ubuntu-latest
15+
environment: release
1416
steps:
1517
- uses: cloudposse/github-action-major-release-tagger@v1
1618
with:
1719
token: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: tibdex/github-app-token@v2
21+
id: github-app
22+
with:
23+
revoke: true
24+
app_id: ${{ secrets.BOT_GITHUB_APP_ID }}
25+
installation_id: ${{ secrets.BOT_ITHUB_APP_INSTALLATION_ID }}
26+
private_key: ${{ secrets.BOT_GITHUB_APP_PRIVATE_KEY }}
27+
repositories: >-
28+
["${{ github.repository }}"]
29+
# To make changes to a workflow file and commit it, these repo scopes are required:
30+
# - contents:write
31+
# - workflows:write
32+
# - metadata:read (set automatically)
33+
permissions: >-
34+
{
35+
"contents:": "write",
36+
"workflows:": "write,
37+
"metadata": "read"
38+
}
1839
- uses: cloudposse/github-action-release-branch-manager@v1
1940
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GITHUB_TOKEN: ${{ steps.github-app.outputs.token }}

0 commit comments

Comments
 (0)