-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (45 loc) · 1.36 KB
/
mannual-jupyterbook-action.yml
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
44
45
46
47
48
49
50
51
52
name: Deploy to gh-pages
# https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-deploy-to-external-repository-external_repository
# When you use deploy_key, set your private key to the repository which includes this action
# and set your public key to your external repository.
# https://github.com/wowchemy/wowchemy-hugo-modules/issues/2240
# mannual trigger
on:
workflow_dispatch:
inputs:
name:
description: 'Person to greet'
required: true
default: 'Hi, Socrates!'
home:
description: 'Action'
required: false
default: 'Kindle the fire!'
# on: # push trigger
# push:
# branches:
# - main # Set a branch name to trigger deployment
# pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
# - uses: pre-commit/[email protected]
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -U jupyter-book
- name: Build
run: |
jupyter-book build .
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./_build/html