Skip to content

Add GitHub Actions workflow for portfolio deployment #1

Add GitHub Actions workflow for portfolio deployment

Add GitHub Actions workflow for portfolio deployment #1

Workflow file for this run

name: Deploy Portfolio
on:
push:
branches:
- main # or 'master' if your repo uses that
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist