name: docs on: push: branches: [master] paths: - "docs/**" - "Makefile" - ".github/workflows/docs.yml" workflow_dispatch: permissions: contents: read pages: write id-token: write concurrency: group: pages cancel-in-progress: false jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - name: Install pandoc run: sudo apt-get update && sudo apt-get install -y pandoc - name: Build site run: make docs # No include-hidden-files: v4 stopped uploading dot-files by default, and # build/site has none. It is pandoc output plus a copy of docs/_assets, # which holds three ordinary files. _assets is underscore-prefixed, not # hidden, and deploy-pages serves the artifact without running Jekyll, so # it needs no .nojekyll either. - uses: actions/upload-pages-artifact@v5 with: path: build/site deploy: needs: build runs-on: ubuntu-latest environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/deploy-pages@v5 id: deployment