Skip to content

build: migrate database on release #55

build: migrate database on release

build: migrate database on release #55

Workflow file for this run

name: CI
on:
push:
branches: [main]
env:
DATABASE_URL: 'https://fake.com'
NODE_ENV: test
NEXTAUTH_SECRET: fake
NEXTAUTH_URL: 'https://fake.com'
GOOGLE_CLIENT_ID: fake
GOOGLE_CLIENT_SECRET: fake
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- 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 dependencies
run: pnpm install
- name: Typecheck
run: pnpm typecheck
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build
- name: Push to dokku
uses: dokku/github-action@master
with:
branch: main
git_remote_url: ${{ secrets.GIT_REMOTE_URL }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}