Add files via upload #33
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: Deploy Jupyter Book | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: true | ||
| jobs: | ||
| build-and-deploy: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Install Jupyter Book | ||
| run: | | ||
| pip install jupyter-book | ||
| - name: Build book | ||
| run: | | ||
| jupyter-book build . --all | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: ./_build/html | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||
| if: github.ref == 'refs/heads/main' | ||
| ``` | ||
| 5. **Commit new file** | ||
| --- | ||
| ## ✅ 결과 | ||
| 이렇게 하면 자동으로: | ||
| ``` | ||
| .github/ | ||
| └── workflows/ | ||
| └── deploy.yml | ||