Skip to content

Commit

Permalink
Create doc.yml (#77)
Browse files Browse the repository at this point in the history
* Create doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Change doc.yml on condition

Co-authored-by: Bluefog-Lib <65107588+Bluefog-Lib@users.noreply.github.com>
  • Loading branch information
bichengying and Bluefog-Lib committed Mar 20, 2021
1 parent 6741599 commit dcd2408
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Document CI

on:
release:
types: [create, edited, prereleased, published]

jobs:
github-page:

runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install OpenMPI
run: |
sudo apt-get install -y -q openmpi-bin libopenmpi-dev
- name: Install BlueFog
run: |
git submodule update --init --recursive
python -m pip install -e .
- name: Build Document
run: |
python -m pip install matplotlib sphinx sphinx_rtd_theme
cd docs && make html
touch _build/html/.nojekyll
- name: Deploy Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html

0 comments on commit dcd2408

Please sign in to comment.