Skip to content

init

init #10

Workflow file for this run

name: Pages
on:
workflow_dispatch:
push:
branches:
- master
- beta
- alpha
- '*.x'
release:
types:
- published
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: 3
jobs:
pages:
name: Deploy to GitHub Pages
runs-on: ubuntu-22.04
permissions:
contents: write
id-token: write
timeout-minutes: 15
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
- name: Cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: |
~/vcpkg
~/.cache/pip
~/.cache/vcpkg
key: cd-pages-${{ hashFiles('vcpkg.json') }}
restore-keys: cd-pages-${{ hashFiles('vcpkg.json') }}
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
with:
python-version: 3.x
- name: Build Docs
run: pipx run nox -s docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html