-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.21 KB
/
website.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
51
52
53
54
name: Deploy website
on:
push:
branches:
- main
workflow_dispatch:
# security: restrict permissions for CI jobs.
permissions:
contents: read
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout
- uses: actions/setup-python@v4
name: Setup Python
with:
python-version: ${{ vars.PYTHON_VERSION }}
- run: pip install -e .[doc]
name: Install deps
- run: pdoc -d google -o docs dyn2py
name: Generate docs
- uses: actions/upload-pages-artifact@v1
name: Upload artifact
with:
path: docs/
# Deploy the artifact to GitHub pages.
# This is a separate job so that only actions/deploy-pages has the necessary permissions.
deploy:
needs: build
name: Publish documentation
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
name: Deploy page
uses: actions/deploy-pages@v1