From b26cb21e3c01944ced7ac92b3c90b8fb66b12a4f Mon Sep 17 00:00:00 2001 From: Venkatesh Ravula <39786905+VenkateshRavula@users.noreply.github.com> Date: Fri, 25 Jun 2021 12:21:40 +0530 Subject: [PATCH 1/3] update workflow --- .github/workflows/run_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 7dd366c7d..4f8f0f17e 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -60,7 +60,7 @@ jobs: keep_history: true build_dir: docs/build/html/. env: - GITHUB_TOKEN: ${{ secrets.ONEVIEW_DEPLOY_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: coveralls uses: AndreMiras/coveralls-python-action@develop From fbb8e03523504ef7ef986791fc21a379409b365d Mon Sep 17 00:00:00 2001 From: Venkatesh Ravula <39786905+VenkateshRavula@users.noreply.github.com> Date: Fri, 25 Jun 2021 12:38:49 +0530 Subject: [PATCH 2/3] Update run_tests.yml --- .github/workflows/run_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 4f8f0f17e..c155ee188 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -60,7 +60,7 @@ jobs: keep_history: true build_dir: docs/build/html/. env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_PAT: ${{ secrets.ONEVIEW_DEPLOY_TOKEN }} - name: coveralls uses: AndreMiras/coveralls-python-action@develop From b045857282319d8390dee878493de234f9897e17 Mon Sep 17 00:00:00 2001 From: Venkatesh Ravula <39786905+VenkateshRavula@users.noreply.github.com> Date: Fri, 25 Jun 2021 12:46:21 +0530 Subject: [PATCH 3/3] Added new action for gh-pages --- .github/workflows/run_tests.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index c155ee188..524bd3088 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -52,15 +52,22 @@ jobs: - name: Run tox tests run: tox - - name: Deploy to GitHub Pages - if: success() - uses: crazy-max/ghaction-github-pages@v2 +# - name: Deploy to GitHub Pages +# if: success() +# uses: crazy-max/ghaction-github-pages@v2 +# with: +# target_branch: gh-pages +# keep_history: true +# build_dir: docs/build/html/. +# env: +# GH_PAT: ${{ secrets.ONEVIEW_DEPLOY_TOKEN }} + + - name: Deploy to GitHub pages + uses: peaceiris/actions-gh-pages@v3 with: - target_branch: gh-pages - keep_history: true - build_dir: docs/build/html/. - env: - GH_PAT: ${{ secrets.ONEVIEW_DEPLOY_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs/build/html/. + keep_files: true - name: coveralls uses: AndreMiras/coveralls-python-action@develop