From 1a93e1645dedbf897c0c2734a45eca6a0864966d Mon Sep 17 00:00:00 2001 From: s-alad Date: Sat, 22 Jun 2024 14:07:56 -0400 Subject: [PATCH] update ci --- .github/workflows/sst.yml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/sst.yml diff --git a/.github/workflows/sst.yml b/.github/workflows/sst.yml new file mode 100644 index 0000000..8e56889 --- /dev/null +++ b/.github/workflows/sst.yml @@ -0,0 +1,40 @@ +name: deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - + name: Checkout code + uses: actions/checkout@v2 + + - + name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: 18 + + - + 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 sst ion + run: curl -fsSL https://ion.sst.dev/install | bash + + - + name: Install dependencies + run: cd ./client && npm install + + - + name: Deploy + run: cd ./client && sst deploy --stage salad \ No newline at end of file