Skip to content

Merge branch 'main' of https://github.com/Toni-Graphics/ygen #25

Merge branch 'main' of https://github.com/Toni-Graphics/ygen

Merge branch 'main' of https://github.com/Toni-Graphics/ygen #25

Workflow file for this run

name: Deploy Website
on:
push:
branches:
- main # Trigger the action on push to the main branch
pull_request:
branches:
- main # Trigger the action on pull requests to the main branch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Specify the Node.js version
- name: Install dependencies
run: |
cd web
npm install
- name: Build Next.js app
run: |
cd web
npm run build
- name: Deploy to Vercel
run: |
cd web
npm install -g vercel
vercel --prod --token=${{ secrets.VERCEL_TOKEN }}