Files
notes/.gitea/workflows/deploy.yaml
John Gatward c8535690f5
Some checks failed
Build and Deploy MkDocs / deploy (push) Failing after 19s
update workflow
2026-03-25 11:34:37 +00:00

30 lines
642 B
YAML

name: Build and Deploy MkDocs
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Build and Extract Site
run: |
docker build -t mkdocs-temp -f ci/mkdocs/Dockerfile .
docker create --name temp-container mkdocs-temp
docker cp temp-container:/build/site ./output_content
docker rm temp-container
mv output_content /tmp/site_final
- name: Deploy to Static volume
run: |
rm -rf /site_output/*
cp -r /tmp/site_final/* /site_output/