Skip to content

feat(master): inti project #50

feat(master): inti project

feat(master): inti project #50

Workflow file for this run

name: DEPLOY API
on:
push:
branches: [master]
paths:
- 'apps/api/**'
- '.github/workflows/deploy-api.yml'
jobs:
Deploy:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
IS_OFFLINE: ${{ secrets.IS_OFFLINE }}
runs-on: [ubuntu-latest]
strategy:
matrix:
node-version: [21]
go-version: [1.21.4]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install serverless global
run: pnpm install -g serverless@latest
- name: Setup go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ap-southeast-1
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Deploy
run: cd apps/api && make deploy