Skip to content

Instantly share code, notes, and snippets.

@paulwongx
Created September 23, 2023 01:58
Show Gist options
  • Save paulwongx/9f0a70db3f928bbe5e34fbe041357196 to your computer and use it in GitHub Desktop.
Save paulwongx/9f0a70db3f928bbe5e34fbe041357196 to your computer and use it in GitHub Desktop.
Github Actions Workflows
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