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 11name : build
22
3+ concurrency : preview-${{ github.ref }}
4+
5+ permissions :
6+ contents : write
7+ pull-requests : write
8+
39on :
410 pull_request :
511
1925 - name : Install uv
2026 uses : astral-sh/setup-uv@v6
2127
22- - name : Validate
28+ - name : Build HTML Docs
2329 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 2323 - name : Deploy to gh page
2424 uses : JamesIves/github-pages-deploy-action@v4.7.3
2525 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:
3636 - name : Sync with CPython
3737 run : make clone merge rm_cpython wrap
3838
39- - uses : tibdex/ github-app-token@v2
40- id : generate -token
39+ - uses : actions/create- github-app-token@v2
40+ id : app -token
4141 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 }}
4444
4545 - name : Create Pull Request
4646 id : cpr
4747 uses : peter-evans/create-pull-request@v6
4848 with :
49- token : ${{ steps.generate -token.outputs.token }}
49+ token : ${{ steps.app -token.outputs.token }}
5050 commit-message : sync with cpython ${{ env.LATEST_COMMIT_ID }}
5151 committer : GitHub <noreply@github.com>
5252 author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
You can’t perform that action at this time.
0 commit comments