32 lines
642 B
YAML
32 lines
642 B
YAML
name: Build
|
|
run-name: ${{ gitea.actor }} is building
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Dependencies
|
|
run: npm i
|
|
|
|
- name: Reset and Push Database Migrations
|
|
run: |
|
|
DATABASE_URL=${{ secrets.POSTGRESQL_CONN_STRING }}
|
|
npx prisma migrate reset --force
|
|
&&
|
|
DATABASE_URL=${{ secrets.POSTGRESQL_CONN_STRING }}
|
|
npx prisma db push
|
|
|
|
- name: Build Dist
|
|
run: npm run build |