Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
raccoon-mh committed Jun 23, 2024
1 parent 6890df8 commit fce212b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy to GitHub Pages
on:
push:
branches:
- main
- main # main 브랜치에 push될 때마다 실행
pull_request:
branches:
- main
Expand All @@ -19,19 +19,22 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
node-version: '22' # 원하는 Node.js 버전 설정

- name: Change directory to /web
run: cd web

- name: Install dependencies
run: npm install
working-directory: ./web

- name: Build project
run: npm run build
env:
working-directory: ./web
working-directory: ./web

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ../docs # 빌드된 파일이 있는 디렉토리 설정
publish_dir: ./web/docs # 빌드된 파일이 있는 디렉토리 설정

0 comments on commit fce212b

Please sign in to comment.