2
0

deploy.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. name: deploy
  2. on:
  3. workflow_dispatch:
  4. concurrency: ${{ github.workflow }}-${{ github.ref }}
  5. jobs:
  6. deploy:
  7. runs-on: blacksmith-4vcpu-ubuntu-2404
  8. steps:
  9. - uses: actions/checkout@v3
  10. - uses: ./.github/actions/setup-bun
  11. - uses: actions/setup-node@v4
  12. with:
  13. node-version: "24"
  14. # Workaround for Pulumi version conflict:
  15. # GitHub runners have Pulumi 3.212.0+ pre-installed, which removed the -root flag
  16. # from pulumi-language-nodejs (see https://github.com/pulumi/pulumi/pull/21065).
  17. # SST 3.17.x uses Pulumi SDK 3.210.0 which still passes -root, causing a conflict.
  18. # Removing the system language plugin forces SST to use its bundled compatible version.
  19. # TODO: Remove when sst supports Pulumi >3.210.0
  20. - name: Fix Pulumi version conflict
  21. run: sudo rm -f /usr/local/bin/pulumi-language-nodejs
  22. - run: bun sst deploy --stage=${{ github.ref_name }}
  23. env:
  24. CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
  25. PLANETSCALE_SERVICE_TOKEN_NAME: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_NAME }}
  26. PLANETSCALE_SERVICE_TOKEN: ${{ secrets.PLANETSCALE_SERVICE_TOKEN }}
  27. STRIPE_SECRET_KEY: ${{ github.ref_name == 'production' && secrets.STRIPE_SECRET_KEY_PROD || secrets.STRIPE_SECRET_KEY_DEV }}