Skip to content

Fix docs.yml GitHub Action site path. #5

Fix docs.yml GitHub Action site path.

Fix docs.yml GitHub Action site path. #5

Workflow file for this run

name: docs
on:
push:
branches:
- master
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: 🧾 Configure GitHub Pages
uses: actions/configure-pages@v4
- name: 🧾 Checkout code
uses: actions/checkout@v4
- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: 📦 Install dependencies
run: pip install zensical
- name: 🧱 Build documentation
working-directory: ./docs
run: zensical build --clean
- name: 📤 Upload to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/site
- name: 🚀 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4