-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
46 lines (44 loc) · 1.05 KB
/
action.yml
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
43
44
45
46
name: Yardang Build
description: 'Install, build, and deploy Sphinx documentation with Yardang'
inputs:
token:
type: string
description: "GitHub Token"
required: true
version:
type: choice
description: "Python version to install"
options:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
default: '3.9'
install_path:
type: string
description: "Path to project to install"
default: '.'
runs:
using: 'composite'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.version }}
cache: "pip"
cache-dependency-path: |
"**/pyproject.toml"
"**/setup.py"
- run: pip install ${{ inputs.install_path }}
shell: bash
- run: pip install yardang
shell: bash
- run: yardang build
shell: bash
- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
github_token: ${{ inputs.token }}
publish_dir: docs/html
force_orphan: true