mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 18:50:43 -06:00
47 lines
828 B
YAML
47 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
|