Skip to content

Update deploy-github-pages.yml #29

Update deploy-github-pages.yml

Update deploy-github-pages.yml #29

name: Deploy React App to GitHub Pages
on:
push:
branches:
- main # 또는 원하는 브랜치 이름
- fixed-deploy-github-pages
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x' # 또는 프로젝트에 맞는 Node.js 버전
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
env:
CI: false # ESLint 에러 무시
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build