2024-07-19 13:16:10 -05:00
|
|
|
name: GitHub Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags: [ "v*.*" ]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
2024-07-19 14:10:33 -05:00
|
|
|
- name: build docs
|
|
|
|
run: ./tasks.py docs
|
2024-07-19 13:16:10 -05:00
|
|
|
|
|
|
|
- name: Upload artifact
|
2024-07-19 14:14:34 -05:00
|
|
|
uses: actions/upload-pages-artifact@v3
|
2024-07-19 13:16:10 -05:00
|
|
|
with:
|
|
|
|
path: ./docs
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
environment:
|
|
|
|
name: github-pages
|
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Deploy to GitHub Pages
|
|
|
|
id: deployment
|
2024-07-19 14:14:34 -05:00
|
|
|
uses: actions/deploy-pages@v4
|