viv/.github/workflows/docs.yml
2023-08-22 22:57:27 -05:00

48 lines
828 B
YAML

name: GitHub Pages
on:
push:
tags: [ "v*.*" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: pdm-project/setup-pdm@v3
with:
python-version: 3.11
cache: true
- run: pip install nox
- name: Build Docs
run: nox -s svgs docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
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