Skip to content

Commit

Permalink
chore(deploy): use custom deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Jun 16, 2023
1 parent aa7d5dd commit 03beecf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ jobs:

- name: Typecheck app
run: npm run typecheck

- name: Deploy to Cloudflare Workers
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_ACCOUNT_ID }}
run: npm run deploy
16 changes: 0 additions & 16 deletions .github/workflows/deploy.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"deploy": "wrangler deploy --env production",
"deploy": "wrangler deploy src/worker.ts --env production",
"dev": "wrangler dev --remote --env development",
"prettier:check": "prettier --check \"./**/**/*.{js,jsx,ts,mjs,tsx,md,css,json}\" --ignore-path .gitignore",
"format": "prettier --write \"./**/**/*.{js,jsx,ts,mjs,tsx,md,css,json}\" --ignore-path .gitignore",
Expand Down
6 changes: 6 additions & 0 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ mode = "smart"
[env.development.vars]
ENVIRONMENT = "development"

[env.development]
name = "discord-invite-widget-cf-workers-development"

[env.production]
name = "discord-invite-widget-cf-workers-production"

[env.production.vars]
ENVIRONMENT = "production"

0 comments on commit 03beecf

Please sign in to comment.