forked from jianjianai/ms-copilot-play
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 985 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Cloudfalre Worker Deploy
on:
push:
branches:
- master
repository_dispatch:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup pnpm
uses: pnpm/[email protected]
with:
run_install: true
version: 9
- name: build - 构建
run: pnpm run build-worker
- name: Deploy to Cloudflare Workers with Wrangler
uses: cloudflare/[email protected]
with:
# Your Cloudflare API Token
apiToken: ${{ secrets.CF_API_TOKEN }} # optional
# Your Cloudflare Account ID
accountId: ${{ secrets.CF_ACCOUNT_ID }} # optional
# The Wrangler command (along with any arguments) you wish to run. Multiple Wrangler commands can be run by separating each command with a newline. Defaults to `"deploy"`.
command: 'deploy --keep-vars'