@@ -24,16 +24,13 @@ jobs:
24
24
contents : write
25
25
26
26
steps :
27
- - name : Checkout repository
28
- uses : actions/checkout@v4
29
- with :
30
- fetch-depth : 0
31
- ref : ${{ github.sha }}
32
- persist-credentials : false
33
27
34
- - name : Force correct release branch on workflow sha
35
- run : |
36
- git checkout -B ${{ github.ref_name }} ${{ github.sha }}
28
+
29
+ - uses : actions/create-github-app-token@v1
30
+ id : app-token
31
+ with :
32
+ app-id : ${{ vars.APP_ID }}
33
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
37
34
38
35
- name : Get GitHub App User ID
39
36
id : get-user-id
45
42
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
46
43
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
47
44
45
+ - name : Checkout repository
46
+ uses : actions/checkout@v4
47
+ with :
48
+ fetch-depth : 0
49
+ ref : ${{ github.sha }}
50
+ token : ${{ steps.app-token.outputs.token }}
51
+ persist-credentials : true
52
+
53
+ - name : Force correct release branch on workflow sha
54
+ run : |
55
+ git checkout -B ${{ github.ref_name }} ${{ github.sha }}
56
+
48
57
- name : Install the latest version of uv
49
58
uses : astral-sh/setup-uv@v5
50
59
with :
68
77
GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
69
78
run : >
70
79
uv run semantic-release -vv version
71
- --commit --tag --changelog
72
- --skip-build --no-push --no-vcs-release
73
-
74
- git push --set-upstream origin ${{ github.ref_name }}
80
+ --commit --tag --changelog --push
81
+ --skip-build --no-vcs-release
75
82
76
83
- name : Build and publish package distributions
77
84
if : env.deploy
0 commit comments