Skip to content

Prisma games functions refactor (#32) #98

Prisma games functions refactor (#32)

Prisma games functions refactor (#32) #98

Workflow file for this run

name: Vercel Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Vercel CLI
run: npm install -g vercel
- name: Pull Vercel Environment Variables
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: vercel pull --yes --token ${{ secrets.VERCEL_TOKEN }}
- name: Set Database URL
run: echo "DATABASE_URL=${{ secrets.DATABASE_URL }}" >> $GITHUB_ENV
- name: Set Direct URL
run: echo "DIRECT_URL=${{ secrets.DIRECT_URL }}" >> $GITHUB_ENV
- name: Build with Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: vercel build --token ${{ secrets.VERCEL_TOKEN }} --prod