Merge pull request #11 from cgay/dev #2
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: Build, checklinks and deploy documentation | |
on: | |
push: | |
# all branches | |
paths: | |
- 'documentation/**/*.rst' | |
- 'documentation/**/conf.py' | |
# This enables the Run Workflow button on the Actions tab. | |
workflow_dispatch: | |
# https://github.com/JamesIves/github-pages-deploy-action#readme | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check links | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: ghcr.io/fraya/dylan-docs | |
options: -v ${{ github.workspace }}/documentation:/docs | |
run: make linkcheck | |
- name: Build docs with Furo theme | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: ghcr.io/fraya/dylan-docs | |
options: -v ${{ github.workspace }}/documentation:/docs | |
run: make html | |
- name: Upload html artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: anaphora-doc-html | |
path: documentation/build/html/ | |
- name: Bypassing Jekyll on GH Pages | |
run: sudo touch documentation/build/html/.nojekyll | |
- name: Deploy documents to GH pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: documentation/build/html |