Skip to content

build(deps): Bump markdown-exec from 1.12.6 to 1.13.0 #161

build(deps): Bump markdown-exec from 1.12.6 to 1.13.0

build(deps): Bump markdown-exec from 1.12.6 to 1.13.0 #161

Workflow file for this run

# Build the reference and publish it to GitHub Pages.
#
# The site at https://scattercode.github.io/sillybos/ is the README followed
# by the API and command line reference, generated by Zensical from docs/
# and the package's docstrings (zensical.toml). Every push to main builds
# it and deploys it with the official Pages flow (upload-pages-artifact,
# then deploy-pages from a job of its own): no gh-pages branch, nothing
# committed. A pull request runs the build alone, in strict mode, so a
# docstring that renders badly or a cross-reference to nothing fails the
# review rather than main.
#
# Publishing needs the repository's Pages source set to "GitHub Actions"
# (Settings > Pages > Build and deployment), which it is.
name: Docs
on:
push:
branches: [main]
# No path filter on pull_request: a required check that is filtered out
# never starts, so never reports, and leaves the pull request blocked.
pull_request:
workflow_dispatch:
# Granted per job below, not here: only the deploy job needs more than read.
permissions: {}
# Two regimes in one expression. Deploying runs share one serialised group
# with no cancellation, so a deploy is never killed mid-flight. Pull-request
# builds deploy nothing and get a per-ref group with cancellation, so a
# review-fix push stops the superseded build instead of paying for it.
concurrency:
group: ${{ github.event_name == 'pull_request' && format('docs-{0}', github.ref) || 'pages' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
name: Build the docs
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
# No pip cache: Zensical's own guidance is not to cache on CI, and
# the install takes seconds.
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Install the package with the docs extra
run: pip install -e '.[docs]'
# --strict makes every warning a failure; --clean starts from
# nothing rather than a cache.
- name: Build
run: zensical build --clean --strict
# The artifact is what deploy-pages publishes. actions/configure-pages
# is left out on purpose: it only sets outputs for static site
# generators that need the site's base path, which this one has in
# zensical.toml, and it would need Pages permissions on a job that
# otherwise reads.
- uses: actions/upload-pages-artifact@v5
if: github.event_name != 'pull_request'
with:
path: site
deploy:
name: Deploy to GitHub Pages
needs: build
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5