feat: deploy PR preview to gh pages #3913
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |