Skip to content

Commit

Permalink
sst ci
Browse files Browse the repository at this point in the history
  • Loading branch information
s-alad committed Jun 22, 2024
1 parent 7b3f42e commit 98baa2d
Showing 1 changed file with 31 additions and 24 deletions.
55 changes: 31 additions & 24 deletions .github/workflows/sst.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
name: Deploy SST
name: deploy

on:
push:
branches:
- main
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
deploy:
runs-on: ubuntu-latest
steps:
-
name: Checkout code
uses: actions/checkout@v2

steps:
- name: Checkout repository
uses: actions/checkout@v2
-
name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 18

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
-
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: us-east-1

- name: Install dependencies
run: npm install
working-directory: ./client
-
name: Install sst ion
run: curl -fsSL https://ion.sst.dev/install | bash

- name: Install SST CLI
run: npm install --global @serverless-stack/cli
-
name: Install dependencies
run: cd ./client && npm install

- name: Deploy SST
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: npx sst deploy --stage prod
working-directory: ./client
-
name: Deploy
run: sst deploy --stage prod

0 comments on commit 98baa2d

Please sign in to comment.