-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 947 Bytes
/
pages.yml
File metadata and controls
42 lines (33 loc) · 947 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
38
39
40
41
42
name: Continuous Delivery
on:
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN
permissions:
contents: write
pages: write
id-token: write
packages: write
jobs:
publish_release:
name: Publish Github release
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install docs dependencies
run: pip install -r requirements-docs.txt
- name: Build package
run: mkdocs build -d documentation
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "documentation"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1