forked from MolSSI/QCFractal
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1004 Bytes
/
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
39
40
41
42
43
44
45
name: Build and Deploy Docs
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: write-all
jobs:
deploy_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed for tag/version
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install package
shell: bash -l {0}
working-directory: docs
run: |
python -m pip install -r requirements.txt
- name: Build Documentation
shell: bash -l {0}
working-directory: docs
run: |
export QCArchiveUsername=${{ secrets.QCARCHIVEUSERNAME }}
export QCArchivePWD=${{ secrets.QCARCHIVEPWD }}
cd docs
make html
- name: Deploy Documentation
uses: JamesIves/github-pages-deploy-action@v4
if: github.event_name != 'pull_request'
with:
folder: docs/build/html