Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Install ${{ matrix.tool.package }}
run: |
if [ -n "${{ matrix.tool.apt_dependencies }}" ]; then
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Prepare environment
run: |
pwd
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and Deploy to GitHub Pages

on:
push:
branches:
- '3.11'

jobs:
sphinx-lint:
name: Check docs (sphinx-lint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install sphinx-lint
run: python -m pip install --upgrade sphinx-lint
- name: Run sphinx-lint
run: 'sphinx-lint --enable default-role --ignore .git'

deploy:
name: 'Generate docs and deploy to GitHub Pages'
runs-on: ubuntu-latest
needs: sphinx-lint
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Prepare environment
run: |
git clone https://github.com/python/cpython.git venv/cpython/
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r requirements.txt -r venv/cpython/Doc/requirements.txt
- name: Make
run: make
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./venv/cpython/Doc/build/html
publish_branch: gh-pages
allow_empty_commit: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'