-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.12 KB
/
docs.yml
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
# Workflow for building sphinx documentation remotely
# and deploying the static HTML to a GitHub Pages site.
# Note this approach does not require the static HTML
# files to be stored/pushed/committed to an alternate
# pages branch or anything like that. It uses GitHub
# Action artifacts...
name: Build and Deploy Sphinx Docs to GitHub Pages
on:
workflow_dispatch:
pull_request:
release:
types:
- published
push:
branches:
- main
- dev
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
## These help to install krank remotely
## So it's importable in conf.py, but I
## think this is solved with a relative
## import now in conf.py.
# - name: Checkout
# uses: actions/checkout@v4
# - name: Install package
# run: python -m pip install .
- name: Deploy to GitHub Pages
id: deployment
uses: sphinx-notes/pages@v3