forked from PyPtt/PyPtt
-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (28 loc) · 786 Bytes
/
docs.yml
File metadata and controls
31 lines (28 loc) · 786 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
name: docs
# run on merge to master or manual trigger
on:
pull_request:
types: [ closed ]
paths:
- 'docs/**/*'
- 'PyPtt/*.py'
workflow_dispatch:
jobs:
build:
if: github.event_name != 'workflow_dispatch' && github.event.pull_request.merged == true
name: Build doc and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
- uses: actions/checkout@v4
with:
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Build and Commit
uses: sphinx-notes/pages@v2
with:
requirements_path: docs/requirements.txt
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages