deploy.yml 483 B

1234567891011121314151617181920212223242526
  1. name: deploy
  2. on:
  3. push:
  4. branches:
  5. - dev
  6. - production
  7. workflow_dispatch:
  8. concurrency: ${{ github.workflow }}-${{ github.ref }}
  9. jobs:
  10. deploy:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. - uses: oven-sh/setup-bun@v1
  15. with:
  16. bun-version: latest
  17. - run: bun install
  18. - run: bun sst deploy --stage=${{ github.ref_name }}
  19. env:
  20. CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}