Version 5.0.0 #91
Workflow file for this run
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 and Deploy Documentation | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: [published] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: Generate and Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Generate docs | |
uses: mattnotmitt/doxygen-action@v1 | |
with: | |
working-directory: 'doxygen' | |
doxyfile-path: 'doxygen.conf' | |
- name: Tag version | |
shell: bash | |
run: | | |
TAG="${GITHUB_REF_NAME/\//-}" | |
mkdir -p doxygen/docs/versions | |
sudo mv doxygen/docs/html doxygen/docs/versions/${TAG} | |
- name: Deploy to documentation branch | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: docs | |
publish_dir: ./doxygen/docs | |
keep_files: true |