This commit is contained in:
@@ -7,14 +7,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest # this will use your runner container
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Step 1: Checkout your repo
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Step 2: Install Python + MkDocs Material
|
|
||||||
- name: Setup Python and MkDocs
|
- name: Setup Python and MkDocs
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
@@ -22,20 +20,11 @@ jobs:
|
|||||||
pip3 install --upgrade pip
|
pip3 install --upgrade pip
|
||||||
pip3 install mkdocs-material
|
pip3 install mkdocs-material
|
||||||
|
|
||||||
# Step 3: Build the static site
|
|
||||||
- name: Build site with MkDocs
|
- name: Build site with MkDocs
|
||||||
run: |
|
run: |
|
||||||
if [ -f "mkdocs.yaml" ]; then
|
mkdocs build
|
||||||
mkdocs build
|
|
||||||
else
|
|
||||||
echo "mkdocs.yml not found!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Step 4: Deploy to host-mounted folder
|
- name: Deploy to host-mounted folder
|
||||||
- name: Deploy to Web Folder
|
|
||||||
run: |
|
run: |
|
||||||
# Ensure target exists
|
|
||||||
mkdir -p /notes
|
mkdir -p /notes
|
||||||
# Copy generated site files
|
|
||||||
cp -R site/* /notes/
|
cp -R site/* /notes/
|
||||||
|
|||||||
Reference in New Issue
Block a user