Skip to content

Commit

Permalink
Added staging autodeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
smakhtin committed Oct 22, 2024
1 parent a564c07 commit e60f7d9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,17 @@ jobs:
with:
node-version: '20'
cache: 'pnpm'
- name: Deploy @sni/api
- name: Deploy @sni/api [PRODUCTION]
uses: cloudflare/wrangler-action@9681c2997648301493e78cacbfb790a9f19c833f # v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
workingDirectory: './apps/api'
packageManager: 'pnpm'
environment: 'production'
- name: Deploy @sni/api [STAGING]
uses: cloudflare/wrangler-action@9681c2997648301493e78cacbfb790a9f19c833f # v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
workingDirectory: './apps/api'
packageManager: 'pnpm'
environment: 'staging'

0 comments on commit e60f7d9

Please sign in to comment.