forked from NREL/GEOPHIRES-X
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.01 KB
/
build_docs.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
name: build_docs
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
build_docs:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser
- name: Sphinx build
run: |
cd docs
make clean
make html
cd _build
touch .nojekyll
git init
git add -A
git config --local user.email "[email protected]"
git config --local useer.name "GitHub Action"
git commit -m 'deploy'
- name: Deploy to GitHub Pages, force push to destination branch
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./docs/_build/html
force: true
force_orphan: true