Skip to content

Commit 3461ad3

Browse files
committed
fix(ci): build documents
1 parent 9b7d054 commit 3461ad3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/documents.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ on:
2222
- "docs/.env*"
2323
- "docs/**/*.md"
2424
- ".github/workflows/doc*.yml"
25+
release:
26+
types: [published]
27+
workflow_run:
28+
workflows: ["Sync branch"]
29+
types:
30+
- completed
2531

2632
jobs:
2733
build:
@@ -53,7 +59,7 @@ jobs:
5359
path: docs/.vitepress/dist
5460

5561
- name: Deploy
56-
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
62+
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'release' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success'))
5763
uses: cloudflare/wrangler-action@v3
5864
with:
5965
apiToken: ${{ secrets.CF_API_TOKEN }}

0 commit comments

Comments
 (0)