-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (27 loc) · 872 Bytes
/
Copy pathmain.yml
File metadata and controls
32 lines (27 loc) · 872 Bytes
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
name: CI
on:
push:
paths:
- src/**
- wrangler.toml
- package.json
pull_request:
branches: [ main ]
workflow_dispatch:
repository_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm install
- name: Deploy to Cloudflare Workers with Wrangler
uses: cloudflare/wrangler-action@v3
with:
gitHubToken: ${{ secrets.SELF_TOKEN_CL }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy
env:
CLOUDFLARE_ACCOUNT_ID: ${{secrets.CLOUDFLARE_ACCOUNT_ID}}