We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b7d054 commit 3461ad3Copy full SHA for 3461ad3
.github/workflows/documents.yml
@@ -22,6 +22,12 @@ on:
22
- "docs/.env*"
23
- "docs/**/*.md"
24
- ".github/workflows/doc*.yml"
25
+ release:
26
+ types: [published]
27
+ workflow_run:
28
+ workflows: ["Sync branch"]
29
+ types:
30
+ - completed
31
32
jobs:
33
build:
@@ -53,7 +59,7 @@ jobs:
53
59
path: docs/.vitepress/dist
54
60
55
61
- 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'))
57
63
uses: cloudflare/wrangler-action@v3
58
64
with:
65
apiToken: ${{ secrets.CF_API_TOKEN }}
0 commit comments