Skip to content

Commit 2bbca12

Browse files
committed
add docs workflow
1 parent 9afd271 commit 2bbca12

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/docs.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: '0'
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.12
22+
- run: python3 -m pip install -U pip
23+
- run: python3 -m pip install -r docs/requirements.txt
24+
- run: python3 -m pip install .
25+
- run: mkdocs build
26+
env:
27+
STAGPY_DOC_CONFIG: 1
28+
- uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: "site/"
31+
32+
deploy:
33+
needs: build
34+
permissions:
35+
pages: write
36+
id-token: write
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/deploy-pages@v4
43+
id: deployment

0 commit comments

Comments
 (0)