-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gh-pages with a circleci job (#392)
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -469,6 +469,39 @@ jobs: | |
name: Test notebooks | ||
command: make test_notebooks | ||
|
||
push_docs: | ||
docker: | ||
- image: cimg/python:3.8 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Update Submodules | ||
command: git submodule update --init | ||
- setup_environment_mpi | ||
- run: | ||
name: Install doc requirements | ||
command: | | ||
. venv/bin/activate | ||
pip install -r requirements_docs.txt -c constraints.txt | ||
- run: | ||
name: Make docs | ||
command: | | ||
. venv/bin/activate | ||
make docs | ||
- run: | ||
name: Move into place | ||
command: | | ||
git clone --branch gh-pages [email protected]:ai2cm/pace.git gh-pages | ||
rm -rf gh-pages/docs | ||
mv docs/_build/html gh-pages/docs | ||
touch gh-pages/docs/.nojekyll | ||
hash=$(git rev-parse --short HEAD) | ||
git config --global user.name "CircleCI" | ||
git config --global user.email "[email protected]" | ||
git -C gh-pages add docs/ | ||
git -C gh-pages commit -a -m "Docs for $hash" | ||
git -C gh-pages push | ||
workflows: | ||
version: 2 | ||
tagged-build: | ||
|
@@ -598,3 +631,10 @@ workflows: | |
filters: | ||
tags: | ||
only: /^v.*/ | ||
- push_docs: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
branches: | ||
only: | ||
- main |
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 |
---|---|---|
|
@@ -164,3 +164,6 @@ _dacegraphs | |
**/testing/output/* | ||
*.png | ||
*.nc | ||
|
||
# VSCode | ||
.devcontainer/ |
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