Skip to content

Commit b1f7c9f

Browse files
committed
feat: deploy PR preview to gh pages
1 parent 0b2c140 commit b1f7c9f

File tree

2 files changed

+14
-30
lines changed

2 files changed

+14
-30
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: build
33
on:
44
pull_request:
55

6+
permissions:
7+
pages: write
8+
contents: write
9+
610
jobs:
711
ci:
812
runs-on: ubuntu-22.04
@@ -19,5 +23,14 @@ jobs:
1923
- name: Install uv
2024
uses: astral-sh/setup-uv@v6
2125

22-
- name: Validate
26+
- name: Build Docs in HTML
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+
preview-branch: gh-pages
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
umbrella-dir: pr-preview
36+
action: auto

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

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

0 commit comments

Comments
 (0)