Merge pull request #2431 from opencobra/master #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update function docs | |
on: | |
push: | |
branches: | |
- develop | |
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: ./documentation | |
run: | | |
pip install -r requirements.txt | |
- name: Generate publications rst file | |
working-directory: ./documentation/source/sphinxext | |
run: | | |
python GenerateCitationsRST.py | |
- name: Update packages | |
working-directory: ./documentation/source | |
run: | | |
python ./sphinxext/copy_files.py | |
- name: Generate functions rst files | |
working-directory: ./documentation/source/modules | |
run: | | |
python ./GetRSTfiles.py | |
- name: Generate documentation | |
working-directory: ./documentation | |
run: | | |
make html | |
- name: Copy the citations html page | |
run: | | |
cp ./documentation/build/html/citations.html ./documentation/source/Citations/citations.html | |
- name: Deploy the function modules | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: ./documentation/build/html/modules | |
branch: develop | |
target-folder: docs/modules | |
commit-message: "update Function Docs (Automatic Workflow)" | |
- name: Deploy the citations page | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./documentation/source/Citations | |
publish_branch: develop | |
keep_files: true | |
destination_dir: docs | |
commit_message: "update Function Docs (Automatic Workflow)" | |
- name: Deploy the citations static page | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./documentation/build/html/_static | |
publish_branch: develop | |
keep_files: true | |
destination_dir: docs/_static | |
commit_message: "update Function Docs (Automatic Workflow)" |