-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 967 Bytes
/
test.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
32
33
34
35
36
37
38
39
40
41
name: DeployDryRun
on:
workflow_dispatch:
pull_request_target:
branches: '**'
types: [opened]
push:
branches: [ master ]
paths:
- '**.js'
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 'latest', '18', '20', '22' ]
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install --save
# - run: npm install wrangler@latest
- name: Publish
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# wranglerVersion: "latest"
command: deploy --dry-run
preCommands: |
wrangler --version
# wrangler secret:bulk ./example.secrets.json
postCommands: |
wrangler secret list
# wrangler deployments list
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}