-
Notifications
You must be signed in to change notification settings - Fork 316
84 lines (82 loc) · 2.65 KB
/
UpdateFunctionDocs.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Update function docs
on:
pull_request_target:
types:
- closed
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
working-directory: ./docs
run: |
pip install -r requirements.txt
- name: Generate publications rst file
working-directory: ./docs/source/sphinxext
run: |
python GenerateCitationsRST.py
- name: Update packages
working-directory: ./docs/source
run: |
python ./sphinxext/copy_files.py
- name: Generate functions rst files
working-directory: ./docs/source/modules
run: |
python ./GetRSTfiles.py
- name: generate documentation
working-directory: ./docs
run: |
make html
- name: Copy the citations html page
run: |
cp ./docs/build/html/citations.html ./docs/source/Citations/citations.html
- name: Deploy the function modules in the latest site
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs/build/html/modules
branch: gh-pages
target-folder: latest/modules
- name: Deploy the function modules in the stable site
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs/build/html/modules
branch: gh-pages
target-folder: stable/modules
- name: Deploy the citations page in latest site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/source/Citations
publish_branch: gh-pages
keep_files: true
destination_dir: latest
- name: Deploy the citations static page in latest site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html/_static
publish_branch: gh-pages
keep_files: true
destination_dir: latest/_static
- name: Deploy the citations page in stable site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/source/Citations
publish_branch: gh-pages
keep_files: true
destination_dir: stable
- name: Deploy the citations static page in stable site
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html/_static
publish_branch: gh-pages
keep_files: true
destination_dir: stable/_static