Skip to content

Update deployment workflow to use 8vCPU instance for improved perform… #9

Update deployment workflow to use 8vCPU instance for improved perform…

Update deployment workflow to use 8vCPU instance for improved perform… #9

Workflow file for this run

name: Deploy to Vercel
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:
# Allow only one concurrent deployment
concurrency:
group: 'vercel'
cancel-in-progress: true
jobs:
build:
runs-on: blacksmith-8vcpu-ubuntu-2204
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Restore cache
uses: useblacksmith/cache@v5
with:
path: |
.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-
- name: Install dependencies
run: bun install
- name: Install Vercel CLI
run: bun add -g vercel@latest
- name: Pull Vercel environment variables
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build project
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}