generated from ensdomains/router-ts-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.21 KB
/
deploy.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: Deploy
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.20
- name: Install dependencies
run: bun install --frozen-lockfile
# - name: Deploy to production
# if: ${{ github.ref == 'refs/heads/main' }}
# uses: cloudflare/wrangler-action@v3
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: Deploy to staging
if: ${{ github.ref != 'refs/heads/main' }}
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy --env staging
environment: staging
secrets: |
DENTITY_CLIENT_SECRET
DENTITY_CLIENT_ID
env:
DENTITY_CLIENT_ID: ${{ secrets.DENTITY_STAGING_CLIENT_ID }}
DENTITY_CLIENT_SECRET: ${{ secrets.DENTITY_STAGING_CLIENT_SECRET }}
DENTITY_BASE_ENDPOINT: https://oidc.staging.dentity.com
APP_REDIRCT: https://ens.domains