-
Notifications
You must be signed in to change notification settings - Fork 42
54 lines (45 loc) · 1.45 KB
/
deploy-guide.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
name: deploy-guide
on:
push:
branches:
- main
- torch
# release:
# types:
# - released
# This job installs dependencies, build the guide, and pushes it to `gh-pages`
jobs:
deploy-guide:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Data setup
run: |
wget -q https://github.com/vita-epfl/trajnetplusplusdata/releases/download/v4.0/train.zip
mkdir data-trajnet
unzip train.zip -d data-trajnet
- name: Install ffmpeg
uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg
- name: ffmpeg codecs
run: ffmpeg -codecs
- name: Install PyTorch without CUDA
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install torch==1.9.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install dependencies
run: python -m pip install -e ".[dev,plot]" --no-build-isolation
- name: Build the guide
timeout-minutes: 45
run: cd guide && jupyter-book build -W --keep-going .
# Push the book's HTML to gh-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./guide/_build/html
force_orphan: true # https://github.com/peaceiris/actions-gh-pages/issues/455