Skip to content

Merge pull request #39 from story645/spelling #55

Merge pull request #39 from story645/spelling

Merge pull request #39 from story645/spelling #55

Workflow file for this run

---
name: Docs
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check if release
id: setup
run: |
echo "IS_RELEASE=${{
github.event_name == 'push' && github.ref == 'refs/heads/main'
}}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
- name: Upgrade jinja
run: pip install -U jinja2
- name: Install Python dependencies
run: pip install -r requirements-doc.txt
- name: Build
run: |
if [ "${{ steps.setup.outputs.IS_RELEASE }}" == "true" ]; then
O="-t release"
fi
make html O="$O"
- name: Publish
if: ${{ steps.setup.outputs.IS_RELEASE == 'true' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
force_orphan: true