Skip to content

Commit dc99774

Browse files
authored
Deploying workers to other ENVS (#91)
1 parent 809e720 commit dc99774

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy_dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
# Deploy the API
3030
- name: 🛳️ DEPLOY Cloudflare Workers
3131
run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_WORKERS_JSCONF_DEV_DEPLOY }} npx wrangler deploy
32+
# Deploy the auth tokens worker
33+
- name: 🛳️ DEPLOY AUTH-TOKEN WORKER
34+
run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_WORKERS_JSCONF_DEV_DEPLOY }} npx wrangler deploy --config ./workers/auth_tokens/wrangler.toml
3235
# Redeploy the EMAIL queue consumer
3336
- name: 💀/🛳️ RE-DEPLOY MAIL queue consumer
3437
run: |

.github/workflows/deploy_prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# Deploy the API
3333
- name: 🛳️ DEPLOY API WORKER
3434
run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_WORKERS_JSCONF_DEV_DEPLOY }} npx wrangler deploy --env=production
35-
35+
# Deploy the auth tokens worker
3636
- name: 🛳️ DEPLOY AUTH-TOKEN WORKER
3737
run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_WORKERS_JSCONF_DEV_DEPLOY }} npx wrangler deploy --env=production --config ./workers/auth_tokens/wrangler.toml
3838
# Redeploy the EMAIL queue consumer

.github/workflows/deploy_staging.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
# Deploy the API
3333
- name: 🛳️ DEPLOY Cloudflare Workers
3434
run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_WORKERS_JSCONF_DEV_DEPLOY }} npx wrangler deploy --env=staging
35+
# Deploy the auth tokens worker
36+
- name: 🛳️ DEPLOY AUTH-TOKEN WORKER
37+
run: CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_WORKERS_JSCONF_DEV_DEPLOY }} npx wrangler deploy --env=staging --config ./workers/auth_tokens/wrangler.toml
3538
# Redeploy the EMAIL queue consumer
3639
- name: 💀/🛳️ RE-DEPLOY MAIL queue consumer
3740
run: |

0 commit comments

Comments
 (0)