99 deploy-backend :
1010 runs-on : ubuntu-latest
1111 name : Deploy Backend to Cloudflare
12+ environment : Production
1213 steps :
1314 - name : Checkout Code
1415 uses : actions/checkout@v4
@@ -33,29 +34,22 @@ jobs:
3334 with :
3435 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
3536 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
36-
37- name : backend
3837 workingDirectory : ' backend'
39-
40- secrets : |
41- SUPABASE_JWT_SECRET
42- DATABASE_URL
43- DIRECT_DATABASE_URL
44- GEMINI_API_KEY
45- SENTRY_DSN
38+ command : npm run deploy
4639 env :
4740 SENTRY_AUTH_TOKEN : ${{ secrets.SENTRY_AUTH_TOKEN }}
41+ SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
4842 SUPABASE_JWT_SECRET : ${{ secrets.SUPABASE_JWT_SECRET }}
4943 DATABASE_URL : ${{ secrets.DATABASE_URL }}
5044 DIRECT_DATABASE_URL : ${{ secrets.DIRECT_DATABASE_URL }}
5145 GEMINI_API_KEY : ${{ secrets.GEMINI_API_KEY }}
52- SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
5346
5447
5548 deploy-frontend :
5649 runs-on : ubuntu-latest
5750 name : Deploy Frontend to Vercel
5851 needs : deploy-backend
52+ environment : Production
5953 steps :
6054 - name : Checkout Code
6155 uses : actions/checkout@v4
@@ -79,11 +73,11 @@ jobs:
7973 run : npm run build
8074 working-directory : ./frontend
8175
82- - name : Upload Source Maps to Sentry
83- run : npx @sentry/cli sourcemaps inject --org sumitbhuia --project medium-clone-frontend ./dist && npx @sentry/cli sourcemaps upload --org sumitbhuia --project medium-clone-frontend ./dist
84- working-directory : ./frontend
85- env :
86- SENTRY_AUTH_TOKEN : ${{ secrets.SENTRY_AUTH_TOKEN }}
76+ # - name: Upload Source Maps to Sentry
77+ # run: npx @sentry/cli sourcemaps inject --org sumitbhuia --project medium-clone-frontend ./dist && npx @sentry/cli sourcemaps upload --org sumitbhuia --project medium-clone-frontend ./dist
78+ # working-directory: ./frontend
79+ # env:
80+ # SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
8781
8882 - name : Deploy to Vercel
8983 uses : amondnet/vercel-action@v25
0 commit comments