Skip to content

Commit 5feaf49

Browse files
authored
use gh apps for release CD (#33)
Signed-off-by: Michele Dolfi <[email protected]>
1 parent 79888d0 commit 5feaf49

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/cd.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,19 @@ jobs:
3636
runs-on: ubuntu-latest
3737
concurrency: release
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/create-github-app-token@v1
40+
id: app-token
41+
with:
42+
app-id: ${{ vars.CI_APP_ID }}
43+
private-key: ${{ secrets.CI_PRIVATE_KEY }}
44+
- uses: actions/checkout@v4
4045
with:
41-
token: ${{ secrets.GH_PAT }}
46+
token: ${{ steps.app-token.outputs.token }}
4247
fetch-depth: 0 # for fetching tags, required for semantic-release
4348
- uses: ./.github/actions/setup-poetry
4449
- name: Run release script
4550
env:
46-
GH_TOKEN: ${{ secrets.GH_PAT }}
51+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
4752
TARGET_VERSION: ${{ needs.pre-release-check.outputs.TARGET_TAG_V }}
4853
CHGLOG_FILE: CHANGELOG.md
4954
run: ./.github/scripts/release.sh

0 commit comments

Comments
 (0)