dms #1
@@ -8,28 +8,25 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: squidfunk/mkdocs-material:latest # includes Python, pip, MkDocs Material
|
# Bigger container: Ubuntu with Python preinstalled
|
||||||
|
image: ubuntu:22.04
|
||||||
steps:
|
steps:
|
||||||
# 1️⃣ Checkout the repository
|
# 1️⃣ Checkout the repository
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: git clone $GITEA_REPOSITORY /github/workspace
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# 2️⃣ Optional: Install Node (only if you add JS plugins later)
|
# 2️⃣ Install Python, pip, and MkDocs
|
||||||
# - name: Install Node.js
|
- name: Setup Python and MkDocs
|
||||||
# run: |
|
|
||||||
# curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
|
||||||
# apt-get install -y nodejs
|
|
||||||
|
|
||||||
# 3️⃣ Install any Python dependencies (optional if you have extra plugins)
|
|
||||||
- name: Install Python dependencies
|
|
||||||
run: |
|
run: |
|
||||||
pip install -r requirements.txt || echo "No requirements.txt found, skipping"
|
apt-get update
|
||||||
|
apt-get install -y python3 python3-pip git curl
|
||||||
|
pip3 install --upgrade pip
|
||||||
|
pip3 install mkdocs mkdocs-material pymdown-extensions
|
||||||
|
|
||||||
# 4️⃣ Build the MkDocs site
|
# 3️⃣ Build MkDocs site to /public (mapped to Docker volume)
|
||||||
- name: Build MkDocs site
|
- name: Build MkDocs
|
||||||
run: |
|
run: mkdocs build --site-dir /public
|
||||||
mkdocs build --site-dir /public
|
|
||||||
|
|
||||||
# 5️⃣ List files to verify build
|
# 4️⃣ Verify output
|
||||||
- name: Verify output
|
- name: Verify output
|
||||||
run: ls -l /public
|
run: ls -l /public
|
||||||
|
|||||||
Reference in New Issue
Block a user