Skip to content

Commit 04e114d

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

File tree

2 files changed

+14
-31
lines changed

2 files changed

+14
-31
lines changed

.github/workflows/ci.yml

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

37
on:
48
pull_request:
59

610
jobs:
711
ci:
8-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-latest
913
steps:
1014
- uses: actions/checkout@v4
1115

@@ -19,5 +23,13 @@ jobs:
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+
preview-branch: gh-pages
34+
umbrella-dir: pr-preview
35+
action: auto

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

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

0 commit comments

Comments
 (0)