FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-template/.github/workflows/docs.yaml at main · python-project-templates/python-template · GitHub
python-project-templates
python-template
Repository navigation
Code
Issues
Pull requests
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-template
/
.github
/
workflows
/
docs.yaml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
59 lines (50 loc) · 1.73 KB
Breadcrumbs
python-template
/
.github
/
workflows
/
docs.yaml
Copy path
File metadata and controls
59 lines (50 loc) · 1.73 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
47
48
49
50
51
52
53
54
55
56
57
58
59
name
:
Publish Docs
on
:
workflow_run
:
workflows
:
["Build Status"]
branches
:
[main]
types
:
[completed]
workflow_dispatch
:
permissions
:
actions
:
read
contents
:
write
jobs
:
docs
:
runs-on
:
ubuntu-24.04
if
:
github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch'
steps
:
-
name
:
Checkout
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
with
:
persist-credentials
:
false
-
name
:
Setup Python
uses
:
actions-ext/python/setup@c8228d827a81b9f8c808825328af361c45461ba3
-
name
:
Download distributions
uses
:
actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
#
v8
with
:
pattern
:
dist
merge-multiple
:
true
path
:
dist
run-id
:
${{ github.event.workflow_run.id }}
github-token
:
${{ secrets.GITHUB_TOKEN }}
repository
:
${{ github.repository }}
if
:
github.event_name == 'workflow_run'
-
name
:
Install from wheel
run
:
|
uv pip install dist/*.whl
uv pip install dist/*.whl --target . --no-deps
uv pip install "yardang[themes]"
if
:
github.event_name == 'workflow_run'
-
name
:
Install from source (manual trigger)
run
:
|
uv pip install .[develop]
uv pip install "yardang[themes]"
if
:
github.event_name == 'workflow_dispatch'
-
name
:
Build documentation
run
:
yardang build
-
name
:
Publish documentation
uses
:
peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453
#
v4.1.0
with
:
publish_branch
:
gh-pages
github_token
:
${{ secrets.GITHUB_TOKEN }}
publish_dir
:
docs/html
Back
|
FazBrowse Home
|
New Git URL