Skip to content

feat: Emails are stored in lowercase (#82) #12

feat: Emails are stored in lowercase (#82)

feat: Emails are stored in lowercase (#82) #12

Workflow file for this run

on:
push:
branches:
- develop
paths:
[
'src/**',
'.github/workflows/prod-backend.yml',
'Dockerfile',
'package.json',
'fly.backend.toml',
]
env:
DATABASE_URL: ${{ secrets.DB_STAGE_URL }}
jobs:
deploy-backend-stage:
runs-on: ubuntu-latest
name: Deploy to stage
if: github.ref == 'refs/heads/develop'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install fly CLI
run: |
curl -L https://fly.io/install.sh | sh
- name: Install pnpm
run: npm install -g pnpm
- name: pnpm install
run: pnpm install
- name: Deploy migrations
run: pnpm db:deploy-migrations
- name: Deploy to stage
run: |
~/.fly/bin/fly deploy \
--config fly.backend.toml \
--dockerfile Dockerfile \
--app culero-stage-api \
--access-token ${{ secrets.FLY_ACCESS_TOKEN }}