1212 branches :
1313 - main
1414env :
15- MAIN_PYTHON_VERSION : " 3.11"
16- POETRY_VERSION : " 2.3.2"
17- PACKAGE_NAME : " ansys-visor-viewer"
18-
1915 # For Solutions private PyPI:
2016 POETRY_HTTP_BASIC_SOLUTIONS_PRIVATE_PYPI_USERNAME : " PAT"
2117 POETRY_HTTP_BASIC_SOLUTIONS_PRIVATE_PYPI_PASSWORD : ${{ secrets.SOLUTIONS_PRIVATE_PYPI_PASSWORD }}
@@ -46,15 +42,18 @@ jobs:
4642 - name : Checkout repository
4743 uses : actions/checkout@v4
4844
45+ - name : Load Visor env
46+ uses : ./.github/actions/load-visor-env
47+
4948 - name : Set up Python
50- uses : actions/setup-python@v4
49+ uses : actions/setup-python@v5
5150 with :
5251 python-version : ${{ env.MAIN_PYTHON_VERSION }}
5352
5453 - name : Set up Node.js
55- uses : actions/setup-node@v1
54+ uses : actions/setup-node@v4
5655 with :
57- node-version : ' 22.12.0 '
56+ node-version : ${{ env.NODE_VERSION }}
5857
5958 - name : Install visor-client npm dependencies
6059 working-directory : src/ansys/visor/visor-client
8685 - name : Checkout repository
8786 uses : actions/checkout@v4
8887
88+ - name : Load Visor env
89+ uses : ./.github/actions/load-visor-env
90+
8991 # Set up Python
9092 - name : Set up Python
91- uses : actions/setup-python@v4
93+ uses : actions/setup-python@v5
9294 with :
9395 python-version : ${{ env.MAIN_PYTHON_VERSION }}
9496
@@ -116,9 +118,9 @@ jobs:
116118
117119 # Node.js package build
118120 - name : Set up Node.js
119- uses : actions/setup-node@v1
121+ uses : actions/setup-node@v4
120122 with :
121- node-version : ' 22.12.0 '
123+ node-version : ${{ env.NODE_VERSION }}
122124
123125 - name : Install visor-client npm dependencies
124126 working-directory : src/ansys/visor/visor-client
@@ -220,6 +222,7 @@ jobs:
220222
221223 outputs :
222224 package_version : ${{ steps.set_package_version.outputs.package_version }}
225+ package_name : ${{ env.PACKAGE_NAME }}
223226
224227 release :
225228 name : Release project
@@ -238,22 +241,22 @@ jobs:
238241 - name : " Download the library artifacts from build-library step"
239242 uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
240243 with :
241- name : ${{ env.PACKAGE_NAME }}-artifacts
242- path : ${{ env.PACKAGE_NAME }}-artifacts
244+ name : ${{ needs.build.outputs.package_name }}-artifacts
245+ path : ${{ needs.build.outputs.package_name }}-artifacts
243246
244247 - name : " Upload artifacts to PyPI using trusted publisher"
245248 uses : pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
246249 with :
247250 repository-url : " https://upload.pypi.org/legacy/"
248251 print-hash : true
249- packages-dir : ${{ env.PACKAGE_NAME }}-artifacts
252+ packages-dir : ${{ needs.build.outputs.package_name }}-artifacts
250253 skip-existing : false
251254
252255 - name : Release to GitHub
253256 uses : ansys/actions/release-github@7e89e00c5619374a1da8c2e876309d8b15ff0559 # v11.0.3
254257 with :
255258 token : ${{ secrets.GITHUB_TOKEN }}
256- library-name : ${{ env.PACKAGE_NAME }}
259+ library-name : ${{ needs.build.outputs.package_name }}
257260 only-code : true
258261
259262
0 commit comments