설정: 블로그 페이지뷰 추적 보정 #9
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 배포 | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| name: 배포 | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: 코드 체크아웃 | |
| uses: actions/checkout@v4 | |
| - name: Node.js 설정 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: 의존성 설치 | |
| run: npm ci | |
| - name: 빌드 | |
| run: npm run build | |
| - name: Pages 설정 | |
| uses: actions/configure-pages@v5 | |
| - name: 빌드 결과물 업로드 | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: dist | |
| - name: GitHub Pages 배포 | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |