Skip to content

Commit

Permalink
Merge pull request #115 from ndem0/demo
Browse files Browse the repository at this point in the history
Xenial dist for travis
  • Loading branch information
ndem0 committed Jun 8, 2020
2 parents 4036d56 + 686c6d2 commit 66bb96c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
37 changes: 13 additions & 24 deletions .github/workflows/sphinx-build.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,26 @@
name: "Pull Request Docs Check"

on:
pull_request:
branches: [ master ]

push:
tags:
- "*"

jobs:

docs:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
steps:

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

- 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
pre-build-command: "python -m pip install pip sphinx_rtd_theme numpy scipy GPy matplotlib -U"
docs-folder: "docs/"

- name: Push changes
uses: ad-m/github-push-action@master
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
#github_token: ${{ secrets.GITHUB_TOKEN }}
deploy_key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
publish_dir: ./docs/build/html
allow_empty_commit: true
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 66bb96c

Please sign in to comment.