Skip to content

Implement Header Effect #4

Implement Header Effect

Implement Header Effect #4

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main # main 브랜치에 푸시할 때마다 실행됩니다
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# 1. GitHub 리포지토리 체크아웃
- name: Checkout repository
uses: actions/checkout@v2
# 2. Node.js 설치
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20" # 사용할 Node.js 버전
# 3. 의존성 설치
- name: Install dependencies
run: npm install
# 4. 프로젝트 빌드
- name: Build project
run: npm run build
# 5. gh-pages를 사용하여 build 폴더를 gh-pages 브랜치에 배포
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build