@@ -128,7 +128,7 @@ jobs:
128128 - name : Upload artifacts
129129 uses : actions/upload-artifact@v4
130130 with :
131- name : " ${{ env.APP_NAME }}-artifacts"
131+ name : " ${{ env.APP_NAME }}-artifacts-linux "
132132 path : " ${{ env.APP_NAME }}-${{ env.PACKAGE_VERSION }}.AppImage"
133133 if-no-files-found : error
134134
@@ -165,7 +165,7 @@ jobs:
165165 - name : Upload artifacts
166166 uses : actions/upload-artifact@v4
167167 with :
168- name : " ${{ env.APP_NAME }}-artifacts"
168+ name : " ${{ env.APP_NAME }}-artifacts-mac "
169169 path : " ${{ env.APP_LABEL }}-${{ env.PACKAGE_VERSION }}.dmg"
170170 if-no-files-found : error
171171
@@ -195,21 +195,20 @@ jobs:
195195 - name : Add Qt-bundled MinGW to PATH
196196 shell : powershell
197197 run : |
198- echo "${{ env.QT_DIR }}\Tools\mingw1310_64\bin" >> $env:GITHUB_PATH
198+ ECHO "${{ env.QT_DIR }}\Tools\mingw1310_64\bin" >> $env:GITHUB_PATH
199199
200200 - name : Compile with MinGW
201201 run : |
202- mkdir build
203- cd build
202+ MKDIR build
203+ CD build
204204 qmake "../src/${{ env.APP_NAME }}.pro" CONFIG+="${{ env.BUILD_TYPE }}"
205205 mingw32-make -j4
206206
207207 - name : Deploy with windeployqt
208208 run : |
209- cd build
210- mkdir deploy
211- move "${{ env.BUILD_TYPE }}\${{ env.APP_NAME }}.exe" deploy
212- cd deploy
209+ MKDIR deploy
210+ MOVE "build\${{ env.BUILD_TYPE }}\${{ env.APP_NAME }}.exe" deploy
211+ CD deploy
213212 windeployqt.exe --verbose 1 "${{ env.APP_NAME }}.exe"
214213
215214 - name : Install NSIS via Scoop
@@ -223,21 +222,14 @@ jobs:
223222 - name : Print NSIS version
224223 run : makensis -VERSION
225224
226- - name : Write NSI file
227- shell : pwsh
228- run : |
229- $env:NSI_SRC | Out-File -FilePath installer.nsi -Encoding ascii
230- env :
231- NSI_SRC : ${{ secrets.NSI_SRC }}
232-
233225 - name : Create NSIS installer
234226 run : |
235- makensis /DAPP_NAME="${{ env.APP_NAME }}" /DPACKAGE_VERSION="${{ env.PACKAGE_VERSION }}" installer.nsi
227+ makensis /DAPP_NAME="${{ env.APP_NAME }}" /DPACKAGE_VERSION="${{ env.PACKAGE_VERSION }}" win-installer\ installer.nsi
236228
237229 - name : Upload artifacts
238230 uses : actions/upload-artifact@v4
239231 with :
240- name : " ${{ env.APP_NAME }}-artifacts"
232+ name : " ${{ env.APP_NAME }}-artifacts-win "
241233 path : " ${{ env.APP_NAME }}-${{ env.PACKAGE_VERSION }}.exe"
242234 if-no-files-found : error
243235
@@ -253,13 +245,15 @@ jobs:
253245 - name : Download built artifacts
254246 uses : actions/download-artifact@v4
255247 with :
256- name : subtivals-artifacts
257- path : release/
248+ path : artifacts
249+
250+ - name : Display downloaded files
251+ run : ls -R artifacts
258252
259253 - name : Create GitHub Release
260254 uses : softprops/action-gh-release@v2
261255 with :
262- files : release/ *
256+ files : artifacts/**/*. *
263257 tag_name : " ${{ github.ref_name }}"
264258 name : " Release ${{ github.ref_name }}"
265259 body : " Automated release for version ${{ github.ref_name }}"
0 commit comments