Skip to content

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'doc/**'
- 'CNAME'
- '.github/workflows/static.yml'
- 'src/markdown_spa/generator/**'
- 'src/markdown_spa/extensions/SASS/**'
- 'src/markdown_spa/extensions/Sitemap/**'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
name: Deploy πŸš€
runs-on: ubuntu-latest
environment:
name: gh-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout πŸ””
uses: actions/checkout@v4
- name: Setup Python 🐍
uses: actions/[email protected]
with:
python-version: 3.12
- name: Install dependencies 🧰
run: python -m pip install -e .
- name: Generate HTML πŸ“š
run: python -m markdown_spa build doc
env:
REPO: ${{ github.repository }}
- name: Setup Pages βš™οΈ
uses: actions/configure-pages@v3
- name: Upload artifact πŸ“€
uses: actions/upload-pages-artifact@v2
with:
path: './doc/generated'
- name: Deploy to GitHub Pages 🌍
id: deployment
uses: actions/deploy-pages@v2