forked from online-ml/river
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.34 KB
/
dev-docs.yml
File metadata and controls
56 lines (45 loc) · 1.34 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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: dev-docs
on:
push:
branches:
- main
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Ubuntu dependencies
run: sudo apt-get install graphviz pandoc
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -e ".[docs]"
pip install git+https://github.com/MaxHalford/yamp
- name: Build docs
run: make doc
- name: Deploy docs
env:
GH_TOKEN: ${{ secrets.GitHubToken }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git config pull.rebase false
git add --all
git commit -m "Release dev docs" --allow-empty
git fetch
git checkout gh-pages
git pull
git checkout main
mike deploy dev --push --remote https://github.com/online-ml/river.git