feature: 2025년 파이콘 한국 실록 초안 작성 #8
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: Build & Deploy GitBook | |
| on: | |
| pull_request: | |
| push: | |
| branches: ["master"] | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: gitbook-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "8" | |
| - name: Build GitBook | |
| run: | | |
| npm install -g gitbook-cli | |
| gitbook install | |
| gitbook build | |
| - name: Upload _book artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: gitbook-_book | |
| path: _book | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| steps: | |
| - name: Download _book artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: gitbook-_book | |
| path: _book | |
| - name: Deploy to gh-pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: gh-pages | |
| publish_dir: ./_book |