fix typo in env var #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SST workflow | |
on: | |
push: | |
branches: | |
- dev # matches every branch | |
# Concurrency group name ensures concurrent workflow runs wait for any in-progress job to finish | |
concurrency: | |
group: merge-${{ github.ref }} | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
DeployApp: | |
runs-on: ubuntu-latest | |
env: | |
AUTH_SECRET: ${{ secrets.AUTH_SECRET }} | |
steps: | |
- name: Git clone the repository | |
uses: actions/checkout@v4 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::211125454464:role/GitHub | |
role-duration-seconds: 1200 #adjust as needed for your build time | |
aws-region: us-east-1 | |
# TODO: we have to manually update the SST version, or set it with an ENV variable | |
- name: Download and Install SST | |
run: | | |
curl -L -o sst-linux-x86_64.tar.gz https://github.com/sst/ion/releases/download/v0.0.298/sst-linux-x86_64.tar.gz | |
tar -xzf sst-linux-x86_64.tar.gz | |
sudo mv sst /usr/local/bin/sst | |
- name: Deploy app | |
run: | | |
npm ci && npm run deploy |