mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
v3 to v5 crossed v4's change to exclude dot-files. build/site has none, so nothing was dropped, and the underscore directory is not hidden.
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
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
|