-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.54 KB
/
docs.yaml
File metadata and controls
51 lines (48 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "docs"
on:
push:
tags-ignore: [ "**" ]
branches: [ "**" ]
pull_request:
release:
types: [ "released" ]
concurrency:
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
cancel-in-progress: true
jobs:
build:
runs-on: "ubuntu-latest"
outputs:
branch_match: "${{ steps.setup.outputs.publishing_branch }}"
steps:
- name: "setup"
id: "setup"
uses: "KyoriPowered/ci-cookbook/actions/setup-python-env@f3b9a3fbb31e9f4320d855e7be17b028522e87be" # 2026.02.07
with:
activate_venv: true
- name: "setup / install deps"
run: "poetry install --with=docs"
- uses: "ammaraskar/sphinx-problem-matcher@master"
- name: "build"
working-directory: "docs/"
env:
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: "make dirhtml"
- name: "publish / upload artifact"
uses: "actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b" # v4.0.0
with:
path: "docs/_build/dirhtml/"
deploy:
runs-on: "ubuntu-latest"
needs: "build"
if: "${{ github.event_name == 'release' || (github.event_name == 'push' && needs.build.outputs.branch_match != '') }}"
permissions:
pages: "write"
id-token: "write"
environment:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"
steps:
- name: "deploy / pages"
id: "deployment"
uses: "actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e" # v4.0.5