FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sqlmodel/.github/workflows/deploy-docs.yml at main · fastapi/sqlmodel · GitHub
fastapi
sqlmodel
Repository navigation
Code
Issues
1
(1)
Pull requests
53
(53)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sqlmodel
/
.github
/
workflows
/
deploy-docs.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
84 lines (82 loc) · 3.14 KB
Breadcrumbs
sqlmodel
/
.github
/
workflows
/
deploy-docs.yml
Copy path
File metadata and controls
84 lines (82 loc) · 3.14 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
name
:
Deploy Docs
on
:
workflow_run
:
#
zizmor: ignore[dangerous-triggers]
workflows
:
-
Build Docs
types
:
-
completed
permissions
:
{}
jobs
:
deploy-docs
:
runs-on
:
ubuntu-latest
permissions
:
deployments
:
write
issues
:
write
pull-requests
:
write
statuses
:
write
timeout-minutes
:
5
steps
:
-
name
:
Dump GitHub context
env
:
GITHUB_CONTEXT
:
${{ toJson(github) }}
run
:
echo "$GITHUB_CONTEXT"
-
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
with
:
persist-credentials
:
false
-
name
:
Set up Python
uses
:
actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
#
v7.0.0
with
:
python-version-file
:
"
.python-version
"
-
name
:
Setup uv
uses
:
astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7
#
v10.2.0
with
:
version
:
"
latest-known
"
enable-cache
:
false
-
name
:
Install GitHub Actions dependencies
run
:
uv sync --locked --no-dev --group github-actions
-
name
:
Deploy Docs Status Pending
run
:
uv run ./scripts/deploy_docs_status.py
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
COMMIT_SHA
:
${{ github.event.workflow_run.head_sha }}
RUN_ID
:
${{ github.run_id }}
STATE
:
"
pending
"
-
name
:
Clean site
run
:
|
rm -rf ./site
mkdir ./site
-
uses
:
actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
#
v8.0.1
with
:
path
:
./site/
pattern
:
docs-site
merge-multiple
:
true
github-token
:
${{ secrets.GITHUB_TOKEN }}
run-id
:
${{ github.event.workflow_run.id }}
-
name
:
Deploy to Cloudflare Pages
#
hashFiles returns an empty string if there are no files
if
:
hashFiles('./site/*')
id
:
deploy
env
:
PROJECT_NAME
:
sqlmodel
BRANCH
:
${{ ( github.event.workflow_run.head_repository.full_name == github.repository && github.event.workflow_run.head_branch == 'main' && 'main' ) || ( github.event.workflow_run.head_sha ) }}
uses
:
cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0
#
v4.1.3
with
:
apiToken
:
${{ secrets.CLOUDFLARE_API_TOKEN }}
#
zizmor: ignore[secrets-outside-env]
accountId
:
${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
#
zizmor: ignore[secrets-outside-env]
command
:
pages deploy ./site --project-name=${{ env.PROJECT_NAME }} --branch=${{ env.BRANCH }}
-
name
:
Deploy Docs Status Error
if
:
failure()
run
:
uv run ./scripts/deploy_docs_status.py
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
COMMIT_SHA
:
${{ github.event.workflow_run.head_sha }}
RUN_ID
:
${{ github.run_id }}
STATE
:
"
error
"
-
name
:
Comment Deploy
run
:
uv run ./scripts/deploy_docs_status.py
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
DEPLOY_URL
:
${{ steps.deploy.outputs.deployment-url }}
COMMIT_SHA
:
${{ github.event.workflow_run.head_sha }}
RUN_ID
:
${{ github.run_id }}
STATE
:
"
success
"
Back
|
FazBrowse Home
|
New Git URL