feat: update dependencies #9
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 | |
# 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: | |
#Define your envs needed for static generation: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }} | |
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }} | |
SPOTIFY_SP_DC: ${{ secrets.SPOTIFY_SP_DC }} | |
ICHIRAN_CONNECTION: ${{ secrets.ICHIRAN_CONNECTION }} | |
steps: | |
- name: Git clone the repository | |
uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: arn:aws:iam::109430059852:role/GitHub | |
role-duration-seconds: 3600 #adjust as needed for your build time | |
aws-region: us-east-1 | |
- name: Deploy app | |
run: | | |
npm i && npx sst deploy --stage prod |