FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sqlmodel/.github/workflows/build-docs.yml at main · ByteDecoder/sqlmodel · GitHub
ByteDecoder
sqlmodel
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sqlmodel
/
.github
/
workflows
/
build-docs.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
88 lines (85 loc) · 2.34 KB
Breadcrumbs
sqlmodel
/
.github
/
workflows
/
build-docs.yml
Copy path
File metadata and controls
88 lines (85 loc) · 2.34 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name
:
Build Docs
on
:
push
:
branches
:
-
main
pull_request
:
types
:
-
opened
-
synchronize
jobs
:
changes
:
runs-on
:
ubuntu-latest
#
Required permissions
permissions
:
pull-requests
:
read
#
Set job outputs to values from filter step
outputs
:
docs
:
${{ steps.filter.outputs.docs }}
steps
:
-
uses
:
actions/checkout@v6
#
For pull requests it's not necessary to checkout the code but for the main branch it is
-
uses
:
dorny/paths-filter@v3
id
:
filter
with
:
filters
:
|
docs:
- README.md
- docs/**
- docs_src/**
- pyproject.toml
- uv.lock
- mkdocs.yml
- mkdocs.env.yml
- .github/workflows/build-docs.yml
- .github/workflows/deploy-docs.yml
- data/**
build-docs
:
needs
:
-
changes
if
:
${{ needs.changes.outputs.docs == 'true' }}
runs-on
:
ubuntu-latest
steps
:
-
name
:
Dump GitHub context
env
:
GITHUB_CONTEXT
:
${{ toJson(github) }}
run
:
echo "$GITHUB_CONTEXT"
-
uses
:
actions/checkout@v6
-
name
:
Set up Python
uses
:
actions/setup-python@v6
with
:
python-version-file
:
"
.python-version
"
-
name
:
Setup uv
uses
:
astral-sh/setup-uv@v7
with
:
enable-cache
:
true
cache-dependency-glob
:
|
pyproject.toml
uv.lock
-
name
:
Install docs extras
run
:
uv sync --locked --no-dev --group docs
-
uses
:
actions/cache@v5
with
:
key
:
mkdocs-cards-${{ github.ref }}
path
:
.cache
-
name
:
Verify README
run
:
uv run ./scripts/docs.py verify-readme
-
name
:
Build Docs
run
:
uv run ./scripts/docs.py build
-
uses
:
actions/upload-artifact@v6
with
:
name
:
docs-site
path
:
./site/**
include-hidden-files
:
true
#
https://github.com/marketplace/actions/alls-green#why
docs-all-green
:
#
This job does nothing and is only used for the branch protection
if
:
always()
needs
:
-
build-docs
runs-on
:
ubuntu-latest
steps
:
-
name
:
Decide whether the needed jobs succeeded or failed
uses
:
re-actors/alls-green@release/v1
with
:
jobs
:
${{ toJSON(needs) }}
allowed-skips
:
build-docs
Back
|
FazBrowse Home
|
New Git URL