File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,13 @@ jobs:
5959 name : dist
6060 path : docs/.vitepress/dist
6161
62+ - name : Install Wrangler
63+ if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'release' || github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success'))
64+ run : pnpm add -w wrangler
65+
6266 - name : Deploy
63- 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'))
64- uses : cloudflare/wrangler-action@v3
65- with :
66- apiToken : ${{ secrets.CF_API_TOKEN }}
67- accountId : ${{ secrets.CF_ACCOUNT_ID }}
68- command : pages deploy "docs/.vitepress/dist/" --commit-dirty=true --project-name=nginxui
67+ if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'release' || github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success'))
68+ run : pnpm wrangler pages deploy "docs/.vitepress/dist/" --commit-dirty=true --project-name=nginxui
69+ env :
70+ CLOUDFLARE_API_TOKEN : ${{ secrets.CF_API_TOKEN }}
71+ CLOUDFLARE_ACCOUNT_ID : ${{ secrets.CF_ACCOUNT_ID }}
You can’t perform that action at this time.
0 commit comments