Skip to content

feat: migrate from AWS Lambda (SST) to Cloudflare Workers #33

feat: migrate from AWS Lambda (SST) to Cloudflare Workers

feat: migrate from AWS Lambda (SST) to Cloudflare Workers #33

Workflow file for this run

name: Deploy to prod Environment
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: simalytics-api-prod
env:
AWS_REGION: "us-east-2"
jobs:
Deploy:
runs-on: ubuntu-latest
environment: prod
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install Dependencies
run: npm install
- name: Deploy to prod
run: npx sst deploy --verbose --stage prod