-
Notifications
You must be signed in to change notification settings - Fork 48
42 lines (36 loc) · 1.05 KB
/
build-and-deploy-doc.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
name: "Build and deploy doumentation"
on:
push:
paths:
- doc/**
pull_request:
paths:
- doc/**
workflow_dispatch:
inputs:
perform_deploy:
description: 'Perform deploy to GitHub Pages branch'
required: true
default: false
type: boolean
jobs:
doc-build-and-deploy:
name: Build and deploy documentation
runs-on: ubuntu-22.04
env:
PIP_CONSTRAINT: constraint.txt
steps:
- name: Checkout repository
uses: actions/checkout@v3
# https://discuss.python.org/t/getting-requirements-to-build-wheel-did-not-run-successfully-exit-code-1/30365/2
- run: echo "cython<3" > constraint.txt
- name: Build documentation
uses: ammaraskar/[email protected]
with:
docs-folder: doc
# - name: Deploy documentation
# if: ${{ github.event_name == 'workflow_dispatch' && inputs.perform_deploy }}
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# branch: gh-pages
# folder: doc/_build/html