From 510f80296f95c9fea4b713166e26fd92b9aab17b Mon Sep 17 00:00:00 2001 From: Alex Fernandez Date: Fri, 4 Sep 2026 11:20:55 +0200 Subject: [PATCH 1/8] maint: Prepare for public release --- .github/workflows/build_and_package.yml | 29 +++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_package.yml b/.github/workflows/build_and_package.yml index 3b49c285..40d8f99c 100644 --- a/.github/workflows/build_and_package.yml +++ b/.github/workflows/build_and_package.yml @@ -281,15 +281,36 @@ jobs: twine-username: "TOKEN" twine-password: ${{ secrets.SOLUTIONS_PRIVATE_PYPI_UPLOAD_TOKEN }} - - name: "Upload artifacts to PyPI" - if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) - uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1 + release: + name: Release project + needs: + - build + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write # Required for PyPI trusted publishing + contents: write # Required to create the GitHub release + steps: + - name: Download artifacts + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: - repository-url: "https://upload.pypi.org/legacy/" + name: ${{ env.PACKAGE_NAME }}-artifacts + path: ${{ env.PACKAGE_NAME }}-artifacts + + - name: Release to the public PyPI + uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 + with: + repository-url: https://upload.pypi.org/legacy/ print-hash: true packages-dir: ${{ env.PACKAGE_NAME }}-artifacts skip-existing: false + - name: Release to GitHub + uses: ansys/actions/release-github@3ad3b285bd9b67045477dafc7f9865a3aa39f692 # v11.0.6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + library-name: ${{ env.PACKAGE_NAME }} + outputs: package_version: ${{ steps.set_package_version.outputs.package_version }} From 8982018619482ad901e5bd7004578b6e1372c65f Mon Sep 17 00:00:00 2001 From: Alex Fernandez Date: Fri, 4 Sep 2026 11:32:18 +0200 Subject: [PATCH 2/8] fix: condition --- .github/workflows/build_and_package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_and_package.yml b/.github/workflows/build_and_package.yml index 40d8f99c..896a8e8e 100644 --- a/.github/workflows/build_and_package.yml +++ b/.github/workflows/build_and_package.yml @@ -283,6 +283,7 @@ jobs: release: name: Release project + if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} needs: - build runs-on: ubuntu-latest From 81c4945278973a38374b2f245f52d9686fed3ac8 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 4 Sep 2026 09:33:36 +0000 Subject: [PATCH 3/8] chore: adding changelog file 70.maintenance.md [dependabot-skip] --- doc/changelog.d/70.maintenance.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/70.maintenance.md diff --git a/doc/changelog.d/70.maintenance.md b/doc/changelog.d/70.maintenance.md new file mode 100644 index 00000000..71b32f5e --- /dev/null +++ b/doc/changelog.d/70.maintenance.md @@ -0,0 +1 @@ +Prepare for public release From 2a40ab04b3c7aa476e123e57a158712fcc526b4f Mon Sep 17 00:00:00 2001 From: Alex Fernandez Date: Mon, 7 Sep 2026 11:47:19 +0200 Subject: [PATCH 4/8] fix: Release step --- .github/workflows/build_and_package.yml | 31 +++++++++++++++++-------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_and_package.yml b/.github/workflows/build_and_package.yml index 094440ab..cfd3e8fb 100644 --- a/.github/workflows/build_and_package.yml +++ b/.github/workflows/build_and_package.yml @@ -215,32 +215,43 @@ jobs: - name: Upload Python package uses: actions/upload-artifact@v4 with: - name: visor - path: dist/*.whl + name: ${{ env.PACKAGE_NAME }} + path: dist/${{ env.PACKAGE_NAME }}*.whl - - name: "Upload artifacts to PyPI" - if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) - uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1 + outputs: + package_version: ${{ steps.set_package_version.outputs.package_version }} + + release: + name: Release project + if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} + needs: [build] + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write # required for release to github + contents: write # required to create releases + steps: + - name: "Download the library artifacts from build-library step" + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: ${{ env.PACKAGE_NAME }}-artifacts path: ${{ env.PACKAGE_NAME }}-artifacts - - name: Release to the public PyPI + - name: "Upload artifacts to PyPI using trusted publisher" uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2 with: - repository-url: https://upload.pypi.org/legacy/ + repository-url: "https://upload.pypi.org/legacy/" print-hash: true packages-dir: ${{ env.PACKAGE_NAME }}-artifacts skip-existing: false - name: Release to GitHub - uses: ansys/actions/release-github@3ad3b285bd9b67045477dafc7f9865a3aa39f692 # v11.0.6 + uses: ansys/actions/release-github@7e89e00c5619374a1da8c2e876309d8b15ff0559 # v11.0.3 with: token: ${{ secrets.GITHUB_TOKEN }} library-name: ${{ env.PACKAGE_NAME }} - outputs: - package_version: ${{ steps.set_package_version.outputs.package_version }} + docker: needs: build From 4756509773373c78848d8166c06e00affa43f856 Mon Sep 17 00:00:00 2001 From: Alex Fernandez Date: Mon, 7 Sep 2026 12:00:29 +0200 Subject: [PATCH 5/8] fix: Package name --- .github/workflows/build_and_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_package.yml b/.github/workflows/build_and_package.yml index cfd3e8fb..6cef36e9 100644 --- a/.github/workflows/build_and_package.yml +++ b/.github/workflows/build_and_package.yml @@ -14,7 +14,7 @@ on: env: MAIN_PYTHON_VERSION: "3.11" POETRY_VERSION: "2.3.2" - PACKAGE_NAME: "VISOR" + PACKAGE_NAME: "ansys-visor-viewer" # For Solutions private PyPI: POETRY_HTTP_BASIC_SOLUTIONS_PRIVATE_PYPI_USERNAME: "PAT" From f944eb94b693ce6d87c4808ffa51066a941da5eb Mon Sep 17 00:00:00 2001 From: Alex Fernandez Date: Mon, 7 Sep 2026 12:02:28 +0200 Subject: [PATCH 6/8] fix: bug --- .github/workflows/build_and_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_package.yml b/.github/workflows/build_and_package.yml index 6cef36e9..f70dead0 100644 --- a/.github/workflows/build_and_package.yml +++ b/.github/workflows/build_and_package.yml @@ -216,7 +216,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} - path: dist/${{ env.PACKAGE_NAME }}*.whl + path: dist/*.whl outputs: package_version: ${{ steps.set_package_version.outputs.package_version }} From 6f384e03dc1071aab37f228bf0ea794bdd330a84 Mon Sep 17 00:00:00 2001 From: Alex Fernandez Date: Mon, 7 Sep 2026 12:14:06 +0200 Subject: [PATCH 7/8] fix: Artifacts --- .github/workflows/build_and_package.yml | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_package.yml b/.github/workflows/build_and_package.yml index f70dead0..006fdb72 100644 --- a/.github/workflows/build_and_package.yml +++ b/.github/workflows/build_and_package.yml @@ -215,8 +215,8 @@ jobs: - name: Upload Python package uses: actions/upload-artifact@v4 with: - name: ${{ env.PACKAGE_NAME }} - path: dist/*.whl + name: ${{ env.PACKAGE_NAME }}-artifacts + path: dist/ outputs: package_version: ${{ steps.set_package_version.outputs.package_version }} diff --git a/pyproject.toml b/pyproject.toml index 1f3dfc72..e58bf77f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-system-version = "1.7.0" [tool.poetry] name = "ansys-visor-viewer" -version = "1.0.0_dev" +version = "1.0.dev0" description = "\"VISOR 3D visualization web component framework\"" authors = ["VISOR Team "] readme = "README.rst" From 84eb1d627b4604949e98b6049d1b583719e4cb3a Mon Sep 17 00:00:00 2001 From: Laura Kasian Date: Tue, 8 Sep 2026 07:59:27 -0700 Subject: [PATCH 8/8] require release tag to start with 'v' --- .github/workflows/build_and_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_package.yml b/.github/workflows/build_and_package.yml index 006fdb72..500cb79c 100644 --- a/.github/workflows/build_and_package.yml +++ b/.github/workflows/build_and_package.yml @@ -223,7 +223,7 @@ jobs: release: name: Release project - if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }} needs: [build] runs-on: ubuntu-latest environment: release