-
Notifications
You must be signed in to change notification settings - Fork 63
39 lines (32 loc) · 1.03 KB
/
generate_docs.yml
File metadata and controls
39 lines (32 loc) · 1.03 KB
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
name: Generate Documentation
on:
workflow_dispatch:
inputs:
message:
description: Commit message
jobs:
generate_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout master branch
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install pdoc
run: |
python -m pip install --upgrade pip
pip install .
pip install pdoc
- name: Generate documentation
run: |
pdoc -o ./docs pytermgui --logo https://github.com/bczsalba/pytermgui/blob/master/assets/title.png?raw=true --docformat google
- name: Commit changes
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add ./docs/
git commit -m "${{ github.event.inputs.message }}"
- name: Push changes
uses: ad-m/github-push-action@master