forked from DCC-EX/dcc-ex.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 997 Bytes
/
Copy pathdocs-manual-build.yml
File metadata and controls
30 lines (28 loc) · 997 Bytes
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
name: Docs - (manual)
on:
workflow_dispatch:
branches: [ sphinx ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Requirements
# Allow sphinx-rtd-theme to choose the versions of sphinx & docutils
run: |
pip3 install -r requirements.txt
# pip3 install sphinx-rtd-theme==1.2.0 \
# sphinx-sitemap sphinxcontrib-spelling sphinx-toolbox ablog sphinx-design
- name: Build docs
run: |
make github
echo 'dcc-ex.com' > docs/_build/html/CNAME
touch docs/_build/html/.nojekyll
- name: Deploy
if: github.ref == 'refs/heads/flash62au-restruct'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.