Files
notes/.gitea/workflows/deploy.yaml
Jay d4109f9d8d
Some checks failed
Build and Deploy Notes / build (push) Failing after 20s
update workflow
2026-03-02 18:18:50 +00:00

45 lines
1.0 KiB
YAML

name: Build and Deploy Notes
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest # this will use your runner container
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python and MkDocs
run: |
apt-get update
apt-get install -y python3-pip
pip3 install --upgrade pip
pip3 install mkdocs-material
- name: Deploy to host-mounted folder
run: |
# Debug: See if the directory is actually a mount
mount | grep /notes || echo "Warning: /notes is not a mount point!"
# Ensure we can write to it
mkdir -p /notes
# Copy files
cp -v -R site/* /notes/
# List contents to verify they exist in the container context
ls -la /notes
- name: Build site with MkDocs
run: |
mkdocs build
- name: Deploy to host-mounted folder
run: |
mkdir -p /notes
cp -R site/* /notes/