Skip to content

Commit 7da08bb

Browse files
committed
feat: add docs to CI
1 parent 553a0e1 commit 7da08bb

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/python_docs.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: deploy
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
- master
8+
paths:
9+
- "python/**"
10+
push:
11+
branches:
12+
- develop
13+
- master
14+
paths:
15+
- "python/**"
16+
17+
jobs:
18+
deploy:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v1
22+
- name: Set up Python
23+
uses: actions/setup-python@v1
24+
with:
25+
python-version: 3.8
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
make dev
30+
working-directory: ./python/
31+
- name: build docs
32+
run: |
33+
make docs
34+
working-directory: ./python/
35+
- name: deploy docs
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: docs/aws_lambda_powertools/
40+
working-directory: ./python/

0 commit comments

Comments
 (0)