-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split stable/develop docs workflow CI
- Loading branch information
Showing
3 changed files
with
92 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
develop: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
# Fix version for now, 3.4 throws an error (see #101) | ||
pip install markdown==3.3.7 | ||
pip install ford==6.1.13 graphviz | ||
sudo apt-get install graphviz | ||
pip install -U sphinx | ||
pip install numpydoc sphinx-rtd-theme lazy-object-proxy==1.4 sphinx-autoapi | ||
- name: Generate documentation | ||
run: | | ||
cd docs | ||
python generate_docs.py develop | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
# only deploy if the branch is develop | ||
if: ${{ contains(github.ref, 'refs/heads/develop') }} | ||
with: | ||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
external_repository: n-claes/legolas.science-dev | ||
publish_branch: main | ||
publish_dir: ./docs | ||
cname: dev.legolas.science | ||
enable_jekyll: true | ||
full_commit_message: 'dev: deploy n-claes/legolas@${{ github.sha }}' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
stable: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
# Fix version for now, 3.4 throws an error (see #101) | ||
pip install markdown==3.3.7 | ||
pip install ford==6.1.13 graphviz | ||
sudo apt-get install graphviz | ||
pip install -U sphinx | ||
pip install numpydoc sphinx-rtd-theme lazy-object-proxy==1.4 sphinx-autoapi | ||
- name: Generate documentation | ||
run: | | ||
cd docs | ||
python generate_docs.py stable | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
# only deploy if the branch is master | ||
if: ${{ contains(github.ref, 'refs/heads/master') }} | ||
with: | ||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY_STABLE }} | ||
external_repository: n-claes/legolas.science-stable | ||
publish_branch: main | ||
publish_dir: ./docs | ||
cname: legolas.science | ||
enable_jekyll: true | ||
full_commit_message: 'stable: deploy n-claes/legolas@${{ github.sha }}' |