2023-05-26 18:37:29 -05:00
|
|
|
name: GitHub Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-05-28 18:43:17 -05:00
|
|
|
tags: ["v*.*"]
|
2023-05-26 18:37:29 -05:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2023-07-31 11:24:11 -05:00
|
|
|
build:
|
2023-05-26 18:37:29 -05:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2023-06-01 00:04:02 -05:00
|
|
|
- uses: pdm-project/setup-pdm@v3
|
|
|
|
with:
|
|
|
|
python-version: 3.11
|
|
|
|
cache: true
|
|
|
|
|
|
|
|
- name: Setup Project
|
|
|
|
run: pdm install
|
|
|
|
|
|
|
|
- name: Build Docs
|
2023-08-10 11:08:26 -05:00
|
|
|
run: |
|
2023-08-10 11:19:45 -05:00
|
|
|
FORCE_COLOR=1 make svgs
|
2023-08-10 11:08:26 -05:00
|
|
|
make docs
|
2023-05-26 18:37:29 -05:00
|
|
|
|
2023-07-31 11:24:11 -05:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-pages-artifact@v2
|
2023-05-26 18:37:29 -05:00
|
|
|
with:
|
2023-07-31 11:24:11 -05:00
|
|
|
path: ./site
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
needs: build
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
id: deployment
|
|
|
|
uses: actions/deploy-pages@v2
|