File tree Expand file tree Collapse file tree 3 files changed +20
-36
lines changed Expand file tree Collapse file tree 3 files changed +20
-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
26
37on :
48 pull_request :
59
610jobs :
711 ci :
8- runs-on : ubuntu-22.04
12+ runs-on : ubuntu-latest
913 steps :
1014 - uses : actions/checkout@v4
1115
1923 - name : Install uv
2024 uses : astral-sh/setup-uv@v6
2125
22- - name : Validate
26+ - name : Build HTML Docs
2327 run : VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
28+
29+ - name : Deploy PR Doc Preview
30+ uses : rossjrw/pr-preview-action@v1
31+ with :
32+ source-dir : ../cpython/Doc/build/html
33+ token : ${{ secrets.GITHUB_TOKEN }}
34+ preview-branch : gh-pages
35+ umbrella-dir : pr-preview
36+ 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