Skip to content

Commit e976b02

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

File tree

2 files changed

+16
-30
lines changed

2 files changed

+16
-30
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: build
22

3+
concurrency: preview-${{ github.ref }}
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
39
on:
410
pull_request:
511

@@ -19,5 +25,14 @@ jobs:
1925
- name: Install uv
2026
uses: astral-sh/setup-uv@v6
2127

22-
- name: Validate
28+
- name: Build HTML Docs
2329
run: VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
30+
31+
- name: Deploy PR Doc Preview
32+
uses: rossjrw/pr-preview-action@v1
33+
with:
34+
source-dir: ../cpython/Doc/build/html
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
preview-branch: gh-pages
37+
umbrella-dir: pr-preview
38+
action: auto

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

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

0 commit comments

Comments
 (0)