Skip to content

Update deploy.yml

Update deploy.yml #60

Workflow file for this run

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: |
# 1. 빌드 도구 안정화 (버그 수정 버전 강제 설치)
pip install -U myst-cli jupyter-book
# 2. 경로 끝에 /. 를 붙여 폴더임을 명확히 인지시킵니다.
jupyter-book build docs/.
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/_build/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
if: github.ref == 'refs/heads/main'