FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-sqlmodel/.github/workflows/deploy-docs.yml at main · bryanchance/python-sqlmodel · GitHub
bryanchance
python-sqlmodel
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-sqlmodel
/
.github
/
workflows
/
deploy-docs.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
48 lines (47 loc) · 1.58 KB
Breadcrumbs
python-sqlmodel
/
.github
/
workflows
/
deploy-docs.yml
Copy path
File metadata and controls
48 lines (47 loc) · 1.58 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
name
:
Deploy Docs
on
:
workflow_run
:
workflows
:
-
Build Docs
types
:
-
completed
jobs
:
deploy-docs
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Dump GitHub context
env
:
GITHUB_CONTEXT
:
${{ toJson(github) }}
run
:
echo "$GITHUB_CONTEXT"
-
uses
:
actions/checkout@v4
-
name
:
Clean site
run
:
|
rm -rf ./site
mkdir ./site
-
name
:
Download Artifact Docs
id
:
download
uses
:
dawidd6/action-download-artifact@v2.28.0
with
:
if_no_artifact_found
:
ignore
github_token
:
${{ secrets.GITHUB_TOKEN }}
workflow
:
build-docs.yml
run_id
:
${{ github.event.workflow_run.id }}
name
:
docs-site
path
:
./site/
-
name
:
Deploy to Cloudflare Pages
if
:
steps.download.outputs.found_artifact == 'true'
id
:
deploy
uses
:
cloudflare/pages-action@v1
with
:
apiToken
:
${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId
:
${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName
:
sqlmodel
directory
:
'
./site
'
gitHubToken
:
${{ secrets.GITHUB_TOKEN }}
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 ) }}
-
name
:
Comment Deploy
if
:
steps.deploy.outputs.url != ''
uses
:
./.github/actions/comment-docs-preview-in-pr
with
:
token
:
${{ secrets.GITHUB_TOKEN }}
deploy_url
:
"
${{ steps.deploy.outputs.url }}
"
Back
|
FazBrowse Home
|
New Git URL