Skip to content

Commit

Permalink
actions to automatically update documentation
Browse files Browse the repository at this point in the history
Signed-off-by: miguelgfierro <[email protected]>
  • Loading branch information
miguelgfierro committed Jan 4, 2024
1 parent 006a33d commit 9263c7d
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/update_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9263c7d

Please sign in to comment.