From 4b52180663c1f0faeb8c16a6c455adaf679958f9 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Thu, 30 Nov 2023 17:18:48 +0100 Subject: [PATCH] Needs upload of doc --- .github/workflows/releaser.yml | 58 +++++++++++++++++----------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index c8faafd07f..db3be58394 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -45,40 +45,40 @@ jobs: # TWINE_USERNAME: __token__ # TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} # -# upload_docs_release: -# name: "Upload stable documentation" + upload_docs_release: + name: "Upload stable documentation" # needs: [Publish_to_PyPI] -# runs-on: ubuntu-latest -# steps: -# - name: "Download Release Asset - HTML" -# uses: dsaltares/fetch-gh-release-asset@1.1.0 -# with: -# file: HTML-doc-ansys-dpf-core.zip -# token: ${{ secrets.GITHUB_TOKEN }} -# -# - name: "List downloaded assets" -# shell: bash -# run: | -# ls -# -# - name: "Upload artifact" -# uses: actions/upload-artifact@v3 -# with: -# name: HTML-doc-ansys-dpf-core.zip -# path: HTML-doc-ansys-dpf-core.zip -# -# - name: "Deploy the stable documentation" -# uses: ansys/actions/doc-deploy-stable@v4 -# with: -# cname: ${{ env.DOCUMENTATION_CNAME }} -# token: ${{ secrets.GITHUB_TOKEN }} -# doc-artifact-name: HTML-doc-ansys-dpf-core.zip -# decompress-artifact: true + runs-on: ubuntu-latest + steps: + - name: "Download Release Asset - HTML" + uses: dsaltares/fetch-gh-release-asset@1.1.0 + with: + file: HTML-doc-ansys-dpf-core.zip + token: ${{ secrets.GITHUB_TOKEN }} + + - name: "List downloaded assets" + shell: bash + run: | + ls + + - name: "Upload artifact" + uses: actions/upload-artifact@v3 + with: + name: HTML-doc-ansys-dpf-core.zip + path: HTML-doc-ansys-dpf-core.zip + + - name: "Deploy the stable documentation" + uses: ansys/actions/doc-deploy-stable@v4 + with: + cname: ${{ env.DOCUMENTATION_CNAME }} + token: ${{ secrets.GITHUB_TOKEN }} + doc-artifact-name: HTML-doc-ansys-dpf-core.zip + decompress-artifact: true doc-index-stable: name: "Deploy stable docs index" runs-on: ubuntu-latest -# needs: upload_docs_release + needs: upload_docs_release steps: - name: "Install Git and clone project" uses: actions/checkout@v4