Skip to content

Apply suggestions from code review #39

Apply suggestions from code review

Apply suggestions from code review #39

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 }}