-
Notifications
You must be signed in to change notification settings - Fork 89
41 lines (35 loc) · 1011 Bytes
/
sphinx_to_pages.yml
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
name: Generate Docs
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: Set up Python 🐍
uses: actions/setup-python@v4
- name: Install dependencies 🔧
run: pip3 install sphinx sphinxawesome-theme sphinx-sitemap myst-parser
# - name: Configure GitHub Pages
# uses: actions/configure-pages@v3
- name: Build Documentation 🧱
uses: sphinx-notes/pages@v3
with:
checkout: true
publish: true
documentation_path: "./docs/source"
# - name: Run Pre-Commit Tests 🧪
# uses: pre-commit/[email protected]
# - name: Push changes 📌
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: pages
# force: true