Skip to content

Commit ce2b454

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

File tree

2 files changed

+12
-31
lines changed

2 files changed

+12
-31
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: build
2+
concurrency: preview-${{ github.ref }}
23

34
on:
45
pull_request:
56

67
jobs:
78
ci:
8-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-latest
910
steps:
1011
- uses: actions/checkout@v4
1112

@@ -19,5 +20,14 @@ jobs:
1920
- name: Install uv
2021
uses: astral-sh/setup-uv@v6
2122

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

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

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

0 commit comments

Comments
 (0)