generated from entelecheia/hyperfast-python-template
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 912 Bytes
/
deploy-docs.yaml
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
40
41
42
---
name: deploy-docs
on:
workflow_call:
workflow_dispatch:
push:
branches:
- release
# Paths can be used to only trigger actions when you have edited certain files, such as a file within the /docs directory
paths:
- "README.md"
- "mkdocs.yaml"
- "docs/**.md"
- "docs/images/**"
- ".github/workflows/deploy-docs.yaml"
- "src/**"
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# set up python
- uses: actions/setup-python@v5
with:
python-version: 3.9
# install the source code
- name: Install the source code
run: pip install .
- uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- run: |
pip install -r docs/requirements.txt
mkdocs gh-deploy --force