Skip to content

Commit

Permalink
Create dev branch and initial CI/CD.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-leisy committed Feb 25, 2025
1 parent 314e89e commit ae469d2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Deploy Portfolio Site

on:
push:
branches:
- main # Runs when pushing to the 'main' branch
pull_request:
branches:
- main # Runs when creating a PR against 'main'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2 # Check out the code from the repository

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22.14.0' # Specify your Node.js version

- name: Install pnpm
run: npm install -g pnpm # Install pnpm globally

- name: Install Dependencies
run: pnpm install # Use pnpm to install dependencies

# - name: Run Tests (Optional)
# run: pnpm test

- name: Build Project
run: pnpm run build # Build the Next.js app with pnpm

- name: Deploy to Vercel
run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }} # Deploy to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Vercel token from GitHub Secrets

0 comments on commit ae469d2

Please sign in to comment.