-
Notifications
You must be signed in to change notification settings - Fork 57
42 lines (39 loc) · 1.19 KB
/
docs.yaml
File metadata and controls
42 lines (39 loc) · 1.19 KB
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
name: Build docs
on: push
jobs:
build:
name: Build Docs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Build docs
uses: actions/setup-python@master
with:
python-version: "3.12"
- run: |
make install
cd docs
make install-deps
make build
tar -C build/html/ --dereference --hard-dereference -cvzf $RUNNER_TEMP/github-pages.tar.gz .
- name: Upload static files as artifact
# We only execute this step if the commit is tagged, i.e., this is a release
#if: startsWith(github.ref, 'refs/tags')
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ${{ runner.temp }}/github-pages.tar.gz
deploy:
name: Deploy docs
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
# We only execute this step if the commit is tagged, i.e., this is a release
#if: startsWith(github.ref, 'refs/tags')
id: deployment
uses: actions/deploy-pages@v4