forked from online-ml/river
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
327302c
commit 8d02085
Showing
2 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,45 +9,47 @@ 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]" | ||
- 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 [email protected] | ||
git config pull.rebase false | ||
git fetch | ||
git checkout gh-pages | ||
git pull | ||
git checkout master | ||
mike deploy dev --push --remote https://github.com/online-ml/river.git | ||
- 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]" | ||
- 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 [email protected] | ||
git config pull.rebase false | ||
git add --all | ||
git commit -m "Release dev docs" | ||
git fetch | ||
git checkout gh-pages | ||
git pull | ||
git checkout master | ||
mike deploy dev --push --remote https://github.com/online-ml/river.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters