Prisma games functions refactor (#32) #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |