-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (37 loc) · 920 Bytes
/
pages.yml
File metadata and controls
37 lines (37 loc) · 920 Bytes
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
name: Pages
'on':
push:
branches:
- master
workflow_dispatch: {}
jobs:
job:
name: Pages
runs-on: ubuntu-22.04
permissions:
pages: write
id-token: write
contents: read
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Check out source repository
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: ensure pip
run: python3 -m ensurepip
- name: Install requirements.txt
run: pip install -r requirements.txt -c constraints.txt
- name: Build docs
run: mkdocs build
- name: Upload artifacts for deployment to Github Pages
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: './site'
- name: Deploy to pages
uses: actions/deploy-pages@v4
id: deployment