diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 0ee29615..9409412e 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -114,10 +114,16 @@ jobs: env: DOC_DEPLOYMENT_IMAGE_TAG: v25.1.0 DOCUMENTATION_CNAME: "visualization.fluent.docs.pyansys.com" + XDG_RUNTIME_DIR: /tmp/runtime-${{ github.run_id }} steps: - uses: actions/checkout@v5 + - name: Create XDG_RUNTIME_DIR + run: | + mkdir -p "$XDG_RUNTIME_DIR" + chmod 700 "$XDG_RUNTIME_DIR" + - name: Set up Python uses: actions/setup-python@v5 with: @@ -166,23 +172,28 @@ jobs: uses: actions/upload-artifact@v4 with: name: HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }} - path: doc/_build/html + path: HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }}.zip retention-days: 7 - - name: Deploy - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'dev') - uses: ansys/actions/doc-deploy-stable@v10 + - name: Remove all docker images + if: always() + run: make docker-clean-images + + deploy-docs-release: + name: "Upload release documentation" + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + needs: [ docs ] + steps: + - name: "Deploy the stable documentation" + uses: ansys/actions/doc-deploy-stable@v10.1.0 with: - doc-artifact-name: 'HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }}' + doc-artifact-name: HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }} cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} - - name: Remove all docker images - if: always() - run: make docker-clean-images - build: name: Build library needs: [tests, docs] @@ -232,7 +243,7 @@ jobs: - name: Upload to Private PyPi run: | - pip install twine + pip install 'twine<6.2.0' python -m twine upload --skip-existing ./**/*.whl python -m twine upload --skip-existing ./**/*.tar.gz env: @@ -242,7 +253,7 @@ jobs: - name: Upload to Public PyPi run: | - pip install twine + pip install 'twine<6.2.0' twine upload --skip-existing ./**/*.whl python -m twine upload --skip-existing ./**/*.tar.gz env: