diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index ee9d497f..ab044355 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -43,7 +43,7 @@ jobs: name: "Deploy development documentation" runs-on: ubuntu-latest needs: [ integration_checks ] - if: github.event_name == 'push' + if: github.event_name == 'push' && !contains(github.ref, 'refs/tags') steps: - uses: pyansys/actions/doc-deploy-dev@v4 with: @@ -53,7 +53,7 @@ jobs: Release: if: contains(github.ref, 'refs/tags') && github.event_name == 'push' - needs: doc-deploy-dev + needs: integration_checks runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -66,11 +66,23 @@ jobs: - uses: actions/download-artifact@v3 with: name: ansys-grantami-bomanalytics-wheel - path: ~/dist + path: dist - uses: actions/download-artifact@v3 with: name: Documentation-pdf + path: dist + + - uses: actions/download-artifact@v3 + with: + name: Documentation-html + path: dist/documentation-html/ + + - name: "Compressing HTML documentation" + uses: vimtor/action-zip@v1.1 + with: + files: dist/documentation-html/ + dest: dist/documentation-html.zip - name: "Deploy stable documentation" uses: pyansys/actions/doc-deploy-stable@v4 @@ -93,6 +105,6 @@ jobs: with: generate_release_notes: true files: | - ~/**/*.whl - ./**/*.zip - ./**/*.pdf + dist/*.whl + dist/documentation-html.zip + dist/*.pdf diff --git a/pyproject.toml b/pyproject.toml index 80fd304b..2e77f3d0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ license = "MIT" authors = ["ANSYS, Inc."] maintainers = ["PyAnsys Maintainers "] repository = "https://github.com/pyansys/grantami-bomanalytics" -documentation = "https://grantami.docs.pyansys.com" +documentation = "https://bomanalytics.grantami.docs.pyansys.com" readme = "README.rst" keywords = [ "Ansys",