Skip to content

Commit ff410d9

Browse files
committed
feat: 액션 추가
1 parent 1ba0cab commit ff410d9

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: deploy-book
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Install Python 3.12
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.12
19+
20+
- name: Install Jupyter Book
21+
run: |
22+
pip install -r requirements.txt
23+
24+
- name: Build the book
25+
run: |
26+
jupyter-book build ./book
27+
28+
- name: Deploy to GitHub Pages # push to gh-pages
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./book/_build/html
33+
34+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_build

0 commit comments

Comments
 (0)