Skip to content

Commit

Permalink
deploy to staging
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Mar 21, 2024
1 parent b0a85cb commit d7ee57e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ jobs:
- run: npm run lint
- run: npm run format:check
- run: npm test
deploy_staging:
runs-on: ubuntu-latest
needs: test
if: github.ref != 'refs/heads/main'
environment: staging
steps:
- uses: actions/checkout@v4
- name: Deploy
run: npx wrangler deploy -e staging
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
deploy:
runs-on: ubuntu-latest
needs: test
Expand Down

0 comments on commit d7ee57e

Please sign in to comment.