File tree Expand file tree Collapse file tree 3 files changed +21
-36
lines changed Expand file tree Collapse file tree 3 files changed +21
-36
lines changed Original file line number Diff line number Diff line change 1
1
name : build
2
+ concurrency : preview-${{ github.ref }}
3
+
4
+ permissions :
5
+ contents : write
6
+ pull-requests : write
2
7
3
8
on :
4
9
pull_request :
5
10
6
11
jobs :
7
12
ci :
8
- runs-on : ubuntu-22.04
13
+ runs-on : ubuntu-latest
9
14
steps :
10
15
- uses : actions/checkout@v4
11
16
19
24
- name : Install uv
20
25
uses : astral-sh/setup-uv@v6
21
26
22
- - name : Validate
27
+ - name : Build HTML Docs
23
28
run : VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
29
+
30
+ - name : Deploy PR Doc Preview
31
+ uses : rossjrw/pr-preview-action@v1
32
+ with :
33
+ source-dir : ../cpython/Doc/build/html
34
+ token : ${{ secrets.GITHUB_TOKEN }}
35
+ preview-branch : gh-pages
36
+ umbrella-dir : pr-preview
37
+ action : auto
Load Diff This file was deleted.
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