diff --git a/.github/workflows/sphinx-build.yml b/.github/workflows/sphinx-build.yml index d6ead835..4bcfe0b8 100644 --- a/.github/workflows/sphinx-build.yml +++ b/.github/workflows/sphinx-build.yml @@ -2,36 +2,27 @@ name: "Pull Request Docs Check" on: pull_request: - branches: [ master ] - + branches: + - master 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@v3 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 + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' diff --git a/docs/source/index.rst b/docs/source/index.rst index 44cd5e0e..0cc01c68 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -8,6 +8,7 @@ Welcome to EZyRB's documentation! Easy Reduced Basis method. +test No. 2 by peaceiris Description ^^^^^^^^^^^^