-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 839 Bytes
/
staging.yml
File metadata and controls
37 lines (32 loc) · 839 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
33
34
35
36
37
name: "Deploy Staging"
on:
workflow_call:
defaults:
run:
shell: bash
jobs:
staging-deploy:
name: "Cloudflare - Staging"
runs-on: ubuntu-latest
environment:
name: staging
url: https://data-api-staging.cheqd.io/
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: 22
cache: 'npm'
- name: Publish to Cloudflare
uses: cloudflare/wrangler-action@v4
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
preCommands: npm ci
command: deploy --env staging
secrets: |
WEBHOOK_URL
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}