viv/.github/workflows/docs.yml

48 lines
850 B
YAML
Raw Normal View History

name: GitHub Pages
on:
push:
2023-05-28 18:43:17 -05:00
tags: ["v*.*"]
workflow_dispatch:
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
run: pdm run 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