Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff646 authored Aug 15, 2024
1 parent 174aac8 commit 2fa9a15
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ jobs:
node-version: '16' # 确保使用与 Cloudflare Workers 兼容的 Node.js 版本

- name: Install dependencies
run: npm install
run: npm install # 安装所有依赖

- name: Publish to Cloudflare Workers
run: |
npx wrangler publish
- name: Build the project
run: npm run build

- name: Deploy to Cloudflare Workers
run: npx wrangler publish

env:
CF_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 comments on commit 2fa9a15

Please sign in to comment.