-
Notifications
You must be signed in to change notification settings - Fork 132
56 lines (50 loc) · 1.42 KB
/
deploy.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
53
54
55
56
name: deploy-book
# Only run this when the master branch changes
on:
push:
branches:
- main
pull_request:
branches:
- main
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Install dependencies
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
use-mamba: true
channels: conda-forge
activate-environment: hls4ml-tutorial
environment-file: environment.yml
python-version: 3.10.10
auto-activate-base: false
# Check dependencies
- name: Check Miniconda
shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort
- name: Build the book
shell: bash -l {0}
run: |
jupyter contrib nbextension install --user
jupyter nbextension enable --py widgetsnbextension
jupyter-book build .
- name: GitHub Pages action
uses: peaceiris/[email protected]
if: ${{ github.event_name != 'pull_request' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'