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 11name : build
2+ concurrency : preview-${{ github.ref }}
3+
4+ permissions :
5+ contents : write
6+ pull-requests : write
27
38on :
49 pull_request :
510
611jobs :
712 ci :
8- runs-on : ubuntu-22.04
13+ runs-on : ubuntu-latest
914 steps :
1015 - uses : actions/checkout@v4
1116
1924 - name : Install uv
2025 uses : astral-sh/setup-uv@v6
2126
22- - name : Validate
27+ - name : Build HTML Docs
2328 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:
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 <[email protected] > 5252 author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
You can’t perform that action at this time.
0 commit comments