Skip to content

Commit fcd6e5a

Browse files
authored
ci: publish to GitHub Pages
1 parent d04b12d commit fcd6e5a

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Only run this when the master branch changes
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
# If your git repository has the Jupyter Book within some-subfolder next to
8+
# unrelated files, you can make this run only if a file within that specific
9+
# folder has been modified.
10+
#
11+
# paths:
12+
# - some-subfolder/**
13+
14+
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
15+
jobs:
16+
deploy-book:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
# Install dependencies
22+
- name: Set up Python 3.9
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.9
26+
27+
- name: Install dependencies
28+
run: |
29+
pip install jupyter-book
30+
31+
# Build the book
32+
- name: Build the book
33+
run: |
34+
jupyter-book build .
35+
36+
# Push the book's HTML to github-pages
37+
- name: GitHub Pages action
38+
uses: peaceiris/actions-gh-pages@v3.6.1
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./_build/html

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# 量潮数据云产品策划文档
1+
# 量潮数据云产品需求文档

0 commit comments

Comments
 (0)