Skip to content

feat: github actions preview #3

feat: github actions preview

feat: github actions preview #3

Workflow file for this run

name: Holahoon Preview
on:
push:
branches-ignore:
- main
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
jobs:
Deploy-Preview:
runs-on: ubuntu-latest
environment:
name: preview
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Set Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Pull Vercel Environment Information
run: yarn vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project
run: yarn vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project
run: yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}