Created
September 23, 2023 01:58
-
-
Save paulwongx/9f0a70db3f928bbe5e34fbe041357196 to your computer and use it in GitHub Desktop.
Github Actions Workflows
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: Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Install dependencies | |
run: npm ci | |
- name: Deploy | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
run: | | |
npx prisma generate | |
npx sst deploy --stage prod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment