Skip to content

feat: deploy PR preview to gh pages #3913

feat: deploy PR preview to gh pages

feat: deploy PR preview to gh pages #3913

Workflow file for this run

name: build
on:
pull_request:
permissions:
pages: write
contents: write
jobs:
ci:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install Dependencies
run: sudo apt-get install gettext
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build Docs in HTML
run: VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
- name: Deploy PR Doc Preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ../cpython/Doc/build/html
preview-branch: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}
umbrella-dir: pr-preview
action: auto