Skip to content

Commit 377ad2f

Browse files
committed
Publish doc to GitHub pages
1 parent ba70786 commit 377ad2f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
tags:
6+
- '*.*.*'
7+
8+
permissions:
9+
contents: write
10+
jobs:
11+
docs:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-python@v3
16+
- name: Install dependencies
17+
run: |
18+
pip install sphinx
19+
20+
- name: Update version
21+
run: make strongmod/version.py
22+
23+
- name: Sphinx build
24+
run: |
25+
sphinx-build ./docs/source/ ./docs/build
26+
- name: Deploy
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
publish_branch: gh-pages
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: docs/build/
32+
force_orphan: true

0 commit comments

Comments
 (0)