mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2026-08-04 18:15:03 +02:00
Turns out the culprit may be a gh-pages deploy mutating the CSS Signed-off-by: nopeitsnothing <no@anonymousplanet.net>
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: 🚀 Publish docs via GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "docs/**"
|
|
- "mkdocs.yml"
|
|
- "requirements.txt"
|
|
- ".github/workflows/publish.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and deploy the Hitchhiker's Guide
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 🛠️ Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: 🐍 Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
cache: "pip"
|
|
|
|
- name: 📦 Install pinned dependencies
|
|
run: pip install -r requirements.txt
|
|
|
|
- name: 🔍 Sanity-check the build (fail fast on broken markup/links)
|
|
run: mkdocs build --strict
|
|
|
|
- name: 🚀 Deploy to gh-pages
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
mkdocs gh-deploy --force --clean
|