forked from entelecheia/hyperfast-python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.01 KB
/
deploy-docs.yaml
File metadata and controls
43 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
name: deploy-docs
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
# Paths can be used to only trigger actions when you have edited certain files, such as a file within the /docs directory
paths:
- "book/**"
- ".github/workflows/deploy-docs.yaml"
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
# install the source code
- name: Install the source code
run: pip install .
# Build the book
- name: Build the book
run: |
pip install -r book/requirements.txt
jupyter-book build book
# Deploy the book's HTML to gh-pages branch
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: book/_build/html
cname: hyperfast-python.entelecheia.ai