Merge pull request #121 from DMU-DebugVisual/sojeong #91
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GitHub Pages Deployment | |
| on: | |
| push: | |
| branches: | |
| - main # main 브랜치에 push할 때 자동 배포 | |
| jobs: | |
| build: | |
| name: Build and Deploy to GitHub Pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 # ✅ Node.js 버전을 20으로 업그레이드 | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Build Project | |
| run: | | |
| CI=false npm run build # CI=false로 경고 무시 | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./build | |
| cname: "Zivorp.com" # Custom domain 자동 설정 |