Skip to content

Commit

Permalink
Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
eduarguz committed Aug 1, 2023
1 parent 93b80b6 commit cfa7dee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
node-version: 16
cache: 'npm'
- run: npm ci
- run: npx sst deploy
- run: npx sst deploy --stage prod
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
4 changes: 4 additions & 0 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export default {
stack.addOutputs({
SiteUrl: site.url,
});

if (app.stage !== "prod") {
app.setDefaultRemovalPolicy("destroy");
}
});
},
} satisfies SSTConfig;

0 comments on commit cfa7dee

Please sign in to comment.