Merge branch 'develop' of github.com:AndydeCleyre/nestedtextto into d… #171
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: Generate docs from templates and docstrings | |
on: | |
push | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: fetch code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: get nox | |
uses: excitedleigh/setup-nox@v2.1.0 | |
- name: render documents | |
run: nox -s render_readme render_api_docs | |
- name: push any changes in current branch | |
run: | | |
git config --global user.name 'GitHub Actions' | |
git config --global user.email 'actions@github.com' | |
git commit -am 'Generate Documentation [Automated]' && git push || true | |
- name: push API docs to Github Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/develop' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./doc/api | |
commit_message: "Generate API Documentation [Automated]" |