From fb8f67be2bc051ae79274f56861fd961fe97dfaf Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Wed, 1 Jun 2022 19:09:15 +0530 Subject: [PATCH 1/2] Fix doc CI --- .github/workflows/ci_cd.yml | 23 ++++++++++++++--------- .github/workflows/nightly-doc-build.yml | 19 ++++++++++++------- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index d6c053a8..1e5e3e52 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -63,19 +63,24 @@ jobs: - uses: actions/checkout@v2 # used for documentation deployment - #- name: Get Bot Application Token - # #if: github.event_name == 'push' && contains(github.ref, 'refs/tags') - # id: get_workflow_token - # uses: peter-murray/workflow-application-token-action@v1 - # with: - # application_id: ${{ secrets.BOT_APPLICATION_ID }} - # application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }} + - name: Get Bot Application Token + #if: github.event_name == 'push' && contains(github.ref, 'refs/tags') + id: get_workflow_token + uses: peter-murray/workflow-application-token-action@v1 + with: + application_id: ${{ secrets.BOT_APPLICATION_ID }} + application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }} - name: Set up Python uses: actions/setup-python@v2 with: python-version: 3.8 + - name: Install OS packages + run: | + sudo apt update + sudo apt install pandoc libegl1 + - name: Install pyfluent-visualization run: make install @@ -117,11 +122,11 @@ jobs: retention-days: 7 - name: Deploy - if: github.event_name == 'push' && contains(github.ref, 'refs/tags') + #if: github.event_name == 'push' && contains(github.ref, 'refs/tags') uses: JamesIves/github-pages-deploy-action@4.1.4 with: repository-name: pyansys/pyfluent-visualization-docs - token: ${{ secrets.DOC_DEPLOYMENT_PAT }} + token: ${{ steps.get_workflow_token.outputs.token }} BRANCH: gh-pages FOLDER: doc/_build/html CLEAN: true diff --git a/.github/workflows/nightly-doc-build.yml b/.github/workflows/nightly-doc-build.yml index 0787091a..50af59c6 100644 --- a/.github/workflows/nightly-doc-build.yml +++ b/.github/workflows/nightly-doc-build.yml @@ -13,18 +13,23 @@ jobs: - uses: actions/checkout@v2 # used for documentation deployment - #- name: Get Bot Application Token - # id: get_workflow_token - # uses: peter-murray/workflow-application-token-action@v1 - # with: - # application_id: ${{ secrets.BOT_APPLICATION_ID }} - # application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }} + - name: Get Bot Application Token + id: get_workflow_token + uses: peter-murray/workflow-application-token-action@v1 + with: + application_id: ${{ secrets.BOT_APPLICATION_ID }} + application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }} - name: Set up Python uses: actions/setup-python@v2 with: python-version: 3.8 + - name: Install OS packages + run: | + sudo apt update + sudo apt install pandoc libegl1 + - name: Install pyfluent-visualization run: make install @@ -48,7 +53,7 @@ jobs: uses: JamesIves/github-pages-deploy-action@4.1.4 with: repository-name: pyansys/pyfluent-visualization-dev-docs - token: ${{ secrets.DOC_DEPLOYMENT_PAT }} + token: ${{ steps.get_workflow_token.outputs.token }} BRANCH: gh-pages FOLDER: doc/_build/html CLEAN: true From faa9545670f22395c58e8d0ac6257a68b3e91f85 Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Wed, 1 Jun 2022 19:11:42 +0530 Subject: [PATCH 2/2] Fix doc CI --- .github/workflows/ci_cd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 1e5e3e52..abe4adbe 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -64,7 +64,7 @@ jobs: # used for documentation deployment - name: Get Bot Application Token - #if: github.event_name == 'push' && contains(github.ref, 'refs/tags') + if: github.event_name == 'push' && contains(github.ref, 'refs/tags') id: get_workflow_token uses: peter-murray/workflow-application-token-action@v1 with: @@ -122,7 +122,7 @@ jobs: retention-days: 7 - name: Deploy - #if: github.event_name == 'push' && contains(github.ref, 'refs/tags') + if: github.event_name == 'push' && contains(github.ref, 'refs/tags') uses: JamesIves/github-pages-deploy-action@4.1.4 with: repository-name: pyansys/pyfluent-visualization-docs