-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions to automatically update documentation
Signed-off-by: miguelgfierro <[email protected]>
- Loading branch information
1 parent
006a33d
commit 9263c7d
Showing
1 changed file
with
17 additions
and
5 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 |
---|---|---|
|
@@ -29,12 +29,24 @@ jobs: | |
run: | | ||
jupyter-book build docs | ||
- name: Deploy documentation | ||
- name: Configure Git | ||
run: | | ||
cd docs/_build/html | ||
git config user.email "[email protected]" | ||
git config user.name "GitHub Actions" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git config user.signingkey "${{ secrets.GPG_KEY_ID }}" | ||
- name: Create and switch to gh-pages branch | ||
run: | | ||
git checkout gh-pages | ||
git pull origin gh-pages || true | ||
- name: Copy built documentation | ||
run: cp -r docs/_build/html/* . | ||
|
||
- name: Add and commit changes | ||
run: | | ||
git add * -f | ||
git commit -m "Update documentation" | ||
git push origin gh-pages | ||
- name: Push changes to gh-pages | ||
run: git push origin gh-pages |