Skip to content

style: change from to zensical from mkdocs #13

style: change from to zensical from mkdocs

style: change from to zensical from mkdocs #13

Workflow file for this run

# .github/workflows/main.yml
name: Deploy Zensical to GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Checkout
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install Zensical
run: pip install zensical
- name: Build with Zensical
run: zensical build --clean
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./site
# Deploy job
deploy:
if: github.event_name == 'push'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# Semantic release job
release-on-push:
permissions:
contents: write
runs-on: ubuntu-latest
needs: deploy
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
persist-credentials: false
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
branches: main
extra_plugins: |
conventional-changelog-conventionalcommits@8.0.0
@semantic-release/commit-analyzer@10.0.1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}