Skip to content

Commit

Permalink
Merge 7768a08 into 4036d56
Browse files Browse the repository at this point in the history
  • Loading branch information
ndem0 committed Jun 5, 2020
2 parents 4036d56 + 7768a08 commit 3c88970
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 21 deletions.
52 changes: 31 additions & 21 deletions .github/workflows/sphinx-build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: "Pull Request Docs Check"

on:
on:
push:
branches:
- master
pull_request:
branches: [ master ]

branches:
- master

jobs:

Expand All @@ -12,26 +15,33 @@ jobs:
steps:

- name: Setup the environment
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6

- name: Create the new documentation
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "doc/"

- name: Commit documentation changes
run: |
git clone https://github.com/mathLab/EZyRB.git --branch gh-pages --single-branch gh-pages
cp -r docs/build/html/* gh-pages/
cd gh-pages
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update documentation" -a || true
- name: Push changes
uses: ad-m/github-push-action@master
pre-build-command: "python -m pip install pip sphinx_rtd_theme numpy scipy GPy matplotlib -U"
docs-folder: "docs/"

#- name: Commit documentation changes
#run: |
#git clone https://github.com/mathLab/EZyRB.git --branch gh-pages --single-branch gh-pages
#cp -r docs/build/html/* gh-pages/
#cd gh-pages
#git config --local user.email "action@github.com"
#git config --local user.name "GitHub Action"
#git add .
#git commit -m "Update documentation" -a || true

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
deploy_token: ${{ secrets.DEPLOY_PRIVATE_KEY }}
publish_dir: ./docs/build/html
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: xenial

language: python

Expand Down

0 comments on commit 3c88970

Please sign in to comment.