From cdccd9b694c0edf3bf5b85a75831a4ef242502a9 Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Tue, 30 Jan 2024 11:19:09 +0100 Subject: [PATCH] FIX: revert action changes Note: some changes are conflicting with the current full documentation upload process (cf https://github.com/actions/upload-artifact/issues/485) Extra: removing setoutput as its deprecated by github --- .github/workflows/full_documentation.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/full_documentation.yml b/.github/workflows/full_documentation.yml index fd6b5d2850f..52336ea951c 100644 --- a/.github/workflows/full_documentation.yml +++ b/.github/workflows/full_documentation.yml @@ -65,7 +65,7 @@ jobs: id: version run: | testenv\Scripts\Activate.ps1 - echo "::set-output name=PYAEDT_VERSION::$(python -c "from pyaedt import __version__; print(__version__)")" + echo "PYAEDT_VERSION=$(python -c 'from pyaedt import __version__; print(__version__)')" >> $GITHUB_OUTPUT echo "PyAEDT version is: $(python -c "from pyaedt import __version__; print(__version__)")" - name: Create HTML Documentations @@ -80,7 +80,7 @@ jobs: # .\doc\make.bat pdf - name: Upload HTML documentation artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: name: documentation-html path: doc/_build/html @@ -94,7 +94,7 @@ jobs: retention-days: 7 # - name: Upload PDF documentation artifact -# uses: actions/upload-artifact@v4 +# uses: actions/upload-artifact@v3 # with: # name: documentation-pdf # path: doc/_build/pdf @@ -115,7 +115,7 @@ jobs: if: github.event_name == 'push' && contains(github.ref, 'refs/tags') steps: - name: Deploy the stable documentation - uses: ansys/actions/doc-deploy-stable@v5 + uses: ansys/actions/doc-deploy-stable@v4 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} @@ -136,7 +136,7 @@ jobs: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v3 - name: Display structure of downloaded files run: ls -R @@ -154,7 +154,7 @@ jobs: echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV - name: "Deploy the stable documentation index for PyAEDT API" - uses: ansys/actions/doc-deploy-index@v5 + uses: ansys/actions/doc-deploy-index@v4 with: cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }} index-name: pyaedt-v${{ env.VERSION_MEILI }} @@ -163,7 +163,7 @@ jobs: pymeilisearchopts: --stop_urls \"EDBAPI\" # Add EDB API as another index. - name: "Deploy the stable documentation index for EDB API" - uses: ansys/actions/doc-deploy-index@v5 + uses: ansys/actions/doc-deploy-index@v4 with: cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}/EDBAPI/ index-name: pyedb-v${{ env.VERSION_MEILI }}