File tree Expand file tree Collapse file tree 3 files changed +32
-10
lines changed Expand file tree Collapse file tree 3 files changed +32
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : build
2
2
3
+ concurrency : preview-${{ github.ref }}
4
+
5
+ permissions :
6
+ contents : write
7
+ pull-requests : write
8
+
3
9
on :
4
10
pull_request :
5
11
19
25
- name : Install uv
20
26
uses : astral-sh/setup-uv@v6
21
27
22
- - name : Validate
28
+ - name : Build HTML Docs
23
29
run : VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
30
+
31
+ - uses : actions/create-github-app-token@v2
32
+ id : app-token
33
+ with :
34
+ app-id : ${{ secrets.APP_ID }}
35
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
36
+
37
+ - name : Deploy PR Doc Preview
38
+ uses : rossjrw/pr-preview-action@v1
39
+ with :
40
+ source-dir : ../cpython/Doc/build/html
41
+ token : ${{ steps.app-token.outputs.token }}
42
+ preview-branch : gh-pages
43
+ umbrella-dir : pr-preview
44
+ action : auto
Original file line number Diff line number Diff line change 23
23
- name : Deploy to gh page
24
24
25
25
with :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
- BRANCH : gh-pages
28
- FOLDER : ../cpython/Doc/build/html
29
- CLEAN : true
26
+ token : ${{ secrets.GITHUB_TOKEN }}
27
+ branch : gh-pages
28
+ folder : ../cpython/Doc/build/html
29
+ clean : true
30
+ clean-exclude : pr-preview/
Original file line number Diff line number Diff line change @@ -36,17 +36,17 @@ jobs:
36
36
- name : Sync with CPython
37
37
run : make clone merge rm_cpython wrap
38
38
39
- - uses : tibdex/ github-app-token@v2
40
- id : generate -token
39
+ - uses : actions/create- github-app-token@v2
40
+ id : app -token
41
41
with :
42
- app_id : ${{ secrets.APP_ID }}
43
- private_key : ${{ secrets.APP_PRIVATE_KEY }}
42
+ app-id : ${{ secrets.APP_ID }}
43
+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
44
44
45
45
- name : Create Pull Request
46
46
id : cpr
47
47
uses : peter-evans/create-pull-request@v6
48
48
with :
49
- token : ${{ steps.generate -token.outputs.token }}
49
+ token : ${{ steps.app -token.outputs.token }}
50
50
commit-message : sync with cpython ${{ env.LATEST_COMMIT_ID }}
51
51
committer :
GitHub <[email protected] >
52
52
author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
You can’t perform that action at this time.
0 commit comments