-
-
Notifications
You must be signed in to change notification settings - Fork 263
32 lines (30 loc) · 933 Bytes
/
Copy pathdeploy-docs.yml
File metadata and controls
32 lines (30 loc) · 933 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
name: Deploy docs
on:
push:
branches:
- master
permissions: {}
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
persist-credentials: false
- name: Install Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: '3.x'
- name: Install Python dependencies
run: |
python -m pip install --upgrade hatch
- name: Build site
run: hatch -e docs run mkdocs build
- name: Deploy to gh-pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: oprypin/push-to-gh-pages@b16c4c1926875f4d9fce26ffc60a623b003231d2 # v3.7.2
with:
publish_dir: site
commit_message: 'Generate docs: '