mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
This commit is contained in:
parent
9b7d0549d9
commit
3461ad3c24
1 changed files with 7 additions and 1 deletions
8
.github/workflows/documents.yml
vendored
8
.github/workflows/documents.yml
vendored
|
@ -22,6 +22,12 @@ on:
|
|||
- "docs/.env*"
|
||||
- "docs/**/*.md"
|
||||
- ".github/workflows/doc*.yml"
|
||||
release:
|
||||
types: [published]
|
||||
workflow_run:
|
||||
workflows: ["Sync branch"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -53,7 +59,7 @@ jobs:
|
|||
path: docs/.vitepress/dist
|
||||
|
||||
- name: Deploy
|
||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
|
||||
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'))
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue