@@ -16,6 +16,9 @@ on: # yamllint disable-line rule:truthy
1616 # Allows you to run this workflow manually from the Actions tab
1717 workflow_dispatch :
1818
19+ env :
20+ PROJECT_NAME : " Scientific-Python"
21+
1922jobs :
2023 # Build installers
2124 build_macos :
6871 - uses : actions/upload-artifact@v4
6972 with :
7073 name : ${{ env.SP_INSTALLER_ARTIFACT_ID }}
71- path : Scientific-Python -*.*
74+ path : ${{ env.PROJECT_NAME }} -*.*
7275 retention-days : ${{ env.ARTIFACT_RETENTION_DAYS }}
7376
7477 build_linux :
9497 - uses : actions/upload-artifact@v4
9598 with :
9699 name : ${{ env.SP_INSTALLER_ARTIFACT_ID }}
97- path : Scientific-Python -*.*
100+ path : ${{ env.PROJECT_NAME }} -*.*
98101 retention-days : ${{ env.ARTIFACT_RETENTION_DAYS }}
99102
100103 build_windows :
@@ -122,7 +125,7 @@ jobs:
122125 - uses : actions/upload-artifact@v4
123126 with :
124127 name : ${{ env.SP_INSTALLER_ARTIFACT_ID }}
125- path : Scientific-Python -*.*
128+ path : ${{ env.PROJECT_NAME }} -*.*
126129 retention-days : ${{ env.ARTIFACT_RETENTION_DAYS }}
127130
128131 # Test
@@ -158,7 +161,7 @@ jobs:
158161 - uses : actions/upload-artifact@v4
159162 with :
160163 name : ${{ env.SP_INSTALLER_ARTIFACT_ID }}-json
161- path : Scientific-Python -*.env.json
164+ path : ${{ env.PROJECT_NAME }} -*.env.json
162165 # upload just one for each installer version
163166 if : matrix.os == 'macos-13' || matrix.os == 'macos-14'
164167 - uses : pyvista/setup-headless-display-action@main
@@ -192,7 +195,7 @@ jobs:
192195 - uses : actions/upload-artifact@v4
193196 with :
194197 name : ${{ env.SP_INSTALLER_ARTIFACT_ID }}-json
195- path : Scientific-Python -*.env.json
198+ path : ${{ env.PROJECT_NAME }} -*.env.json
196199 # upload just one for each installer version
197200 if : matrix.os == 'ubuntu-24.04'
198201 - uses : pyvista/setup-headless-display-action@main
@@ -227,7 +230,7 @@ jobs:
227230 - uses : actions/upload-artifact@v4
228231 with :
229232 name : ${{ env.SP_INSTALLER_ARTIFACT_ID }}-json
230- path : Scientific-Python -*.env.json
233+ path : ${{ env.PROJECT_NAME}} -*.env.json
231234 # upload just one for each installer version
232235 if : matrix.os == 'windows-2022'
233236 - uses : pyvista/setup-headless-display-action@main
@@ -250,12 +253,12 @@ jobs:
250253 # These names should correspond to SP_INSTALLER_ARTIFACT_ID in tools/extract_version.sh
251254 - uses : actions/download-artifact@v4
252255 with :
253- pattern : Scientific -Python-*
256+ pattern : ${{ env.PROJECT_NAME }} -Python-*
254257 merge-multiple : true
255258 - run : ls -al ./
256259 - uses : ncipollo/release-action@v1
257260 with :
258- artifacts : " Scientific-Python -*.*"
261+ artifacts : " ${{ env.PROJECT_NAME }} -*.*"
259262 token : ${{ secrets.GITHUB_TOKEN }}
260263 draft : true
261264 prerelease : true
0 commit comments