work in progress on publishing docs

This commit is contained in:
2026-07-26 23:24:07 +02:00
parent 2cec4de32e
commit 5a906cdea0
7 changed files with 63 additions and 9 deletions
+5 -9
View File
@@ -2,16 +2,12 @@
name: Deploy static content to Pages
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
release:
types: [published]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
push:
branches:
- main
paths:
- '_docs/**'
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
+39
View File
@@ -0,0 +1,39 @@
name: Update Docs
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '_docs/**'
jobs:
## Run replacements and cleanups on the docs
prepare-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Upload spearhead.lua artifact
uses: actions/upload-artifact@v3
with:
name: spearhead-lua
path: ./output/spearhead.lua
build-image:
runs-on: ubuntu-latest
steps:
# Download prepared pages from the previous job
- name: Build Docker image for docs
run: |
docker build -t spearhead-docs ./_docs