forked from dylan-lang/opendylan
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.04 KB
/
build-deploy-documentation.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
42
43
44
45
#
# Build HTML documentation and upload it to GitHub Pages
#
name: Build and deploy documentation
on:
push:
paths:
- 'documentation/**/*.rst'
- 'documentation/**/conf.py'
# This enables the Run Workflow button on the Actions tab.
workflow_dispatch:
jobs:
build-documentation:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Add sphinx dependencies
run: |
echo furo >> documentation/requirements.txt
echo sphinx-copybutton >> documentation/requirements.txt
- name: Build documentation
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "documentation"
- name: Bypassing Jekyll on GH pages
run: |
sudo touch documentation/_build/html/.nojekyll
- name: Deploy documents to GH pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: documentation/_build/html