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