Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf83f06

Browse files
committed
feat: deploy PR preview to gh pages
1 parent0b2c140 commitcf83f06

File tree

3 files changed

+21
-36
lines changed

3 files changed

+21
-36
lines changed

‎.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name:build
2+
concurrency:preview-${{ github.ref }}
3+
4+
permissions:
5+
contents:write
6+
pull-requests:write
27

38
on:
49
pull_request:
510

611
jobs:
712
ci:
8-
runs-on:ubuntu-22.04
13+
runs-on:ubuntu-latest
914
steps:
1015
-uses:actions/checkout@v4
1116

@@ -19,5 +24,14 @@ jobs:
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

‎.github/workflows/deploy-gh-page.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎.github/workflows/py313-sync-cpython.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp