Apply suggestions from code review #39
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-ignore: | |
- 'gh-pages' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Determine Output Directory | |
id: output_dir | |
run: | | |
branch_name="${{ github.ref }}" | |
branch_name="${branch_name#refs/heads/}" | |
output_dir="./${branch_name}" | |
echo "DOC_OUTPUT_DIR=$output_dir" >> "$GITHUB_ENV" | |
- name: generate documentation | |
uses: mattnotmitt/[email protected] | |
with: | |
additional-packages: texlive perl # necessary for citing bib files | |
- name: deploy documentation | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./doc/html | |
destination_dir: ${{ env.DOC_OUTPUT_DIR }} | |