viv/.github/workflows/docs.yml

51 lines
891 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
- name: Setup Project
run: pdm install
- name: Build Docs
2023-08-10 11:08:26 -05:00
run: |
FORCE_COLOR=1 make svgs
2023-08-10 11:08:26 -05:00
make 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