github pages #1623
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: github pages | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Auto-trigger workflow everyday at 00:00 | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Dependencies | |
run: | | |
echo "Preparing files for documentation" | |
make docs | |
echo "Install Sphinx" | |
pip install sphinx | |
pip install pydata_sphinx_theme | |
echo "Install Breathe" | |
pip install breathe | |
- name: Doxygen Action | |
uses: mattnotmitt/[email protected] | |
- name: Move XML to Orca-Docs | |
run: sudo mv docs/xml orca-docs/docs | |
- name: Breathe Action | |
run: make -C orca-docs/docs html | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./orca-docs/docs/build/html |