viv/.github/workflows/docs.yml

48 lines
828 B
YAML
Raw Normal View History

name: GitHub Pages
on:
push:
2023-08-21 15:48:40 -05:00
tags: [ "v*.*" ]
workflow_dispatch:
2023-08-21 15:48:40 -05:00
jobs:
2023-07-31 11:24:11 -05:00
build:
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
2023-08-22 22:47:33 -05:00
- run: pip install nox
2023-06-01 00:04:02 -05:00
- name: Build Docs
2023-08-22 22:47:33 -05:00
run: nox -s svgs docs
2023-07-31 11:24:11 -05:00
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
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