-
Notifications
You must be signed in to change notification settings - Fork 444
48 lines (39 loc) · 1.17 KB
/
build_pages.yml
File metadata and controls
48 lines (39 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Pages Build
on:
push:
branches: [ "master" ]
jobs:
pages_build:
name: Build Pages
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: actions/checkout@v4
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: "Install requirements"
run: python3 -m pip install -r requirements-pages.txt
- name: "Build pages"
run: sphinx-build -b html -c ./docs/source/ ./docs/source/ ./docs/latest/
- name: "Pull any updates"
shell: bash
run: git pull
- name: "Check for changes"
shell: bash
run: git status
- name: "Stage changed files"
shell: bash
run: git add ./docs/latest
- name: "Commit changed files"
shell: bash
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Update the docs" || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}