Skip to content

Commit a8108e9

Browse files
committed
Fix packaging actions for Powershell
1 parent 211d2b1 commit a8108e9

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/generate-windows-packages-debug.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Run PyInstaller to create binaries
3434
run: |
3535
pyinstaller.exe --noconfirm turing-system-monitor-debug.spec
36+
"${{github.event.release.tag_name}}-debug" | Out-File ".\dist\turing-system-monitor\version.txt"
3637
3738
- name: Create InnoSetup installer from generated binaries
3839
uses: Minionguyjpro/[email protected]
@@ -42,21 +43,20 @@ jobs:
4243

4344
- name: Create portable zip archive from generated binaries
4445
run: |
45-
rm -rf "res/themes/--Theme examples"
46-
mv dist/turing-system-monitor dist/turing-system-monitor-${{github.event.release.tag_name}}-debug
47-
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip dist/turing-system-monitor-${{github.event.release.tag_name}}-debug
46+
Remove-Item -r ".\dist\turing-system-monitor\res\themes\--Theme examples\"
47+
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip ".\dist\turing-system-monitor"
4848
4949
- name: '📦 Archive Windows installer'
5050
uses: actions/upload-artifact@v4
5151
with:
52-
name: turing-system-monitor_${{github.event.release.tag_name}}-debug
52+
name: turing-system-monitor-${{github.event.release.tag_name}}-debug
5353
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-debug.exe
5454
if-no-files-found: error
5555

5656
- name: '📦 Archive Windows portable archive'
5757
uses: actions/upload-artifact@v4
5858
with:
59-
name: turing-system-monitor_${{github.event.release.tag_name}}-portable-debug
59+
name: turing-system-monitor-${{github.event.release.tag_name}}-portable-debug
6060
path: turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip
6161
if-no-files-found: error
6262

@@ -68,6 +68,6 @@ jobs:
6868

6969
- name: '📩 Publish Windows portable zip to Release'
7070
run: |
71-
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip
71+
gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-portable-debug.zip
7272
env:
7373
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/generate-windows-packages.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Run PyInstaller to create binaries
3434
run: |
3535
pyinstaller.exe --noconfirm turing-system-monitor.spec
36+
"${{github.event.release.tag_name}}" | Out-File ".\dist\turing-system-monitor\version.txt"
3637
3738
- name: Create InnoSetup installer from generated binaries
3839
uses: Minionguyjpro/[email protected]
@@ -42,21 +43,20 @@ jobs:
4243

4344
- name: Create portable zip archive from generated binaries
4445
run: |
45-
rm -rf "res/themes/--Theme examples"
46-
mv dist/turing-system-monitor dist/turing-system-monitor-${{github.event.release.tag_name}}
47-
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable.zip dist/turing-system-monitor-${{github.event.release.tag_name}}
46+
Remove-Item -r ".\dist\turing-system-monitor\res\themes\--Theme examples\"
47+
7z a -tzip turing-system-monitor-${{github.event.release.tag_name}}-portable.zip ".\dist\turing-system-monitor"
4848
4949
- name: '📦 Archive Windows installer'
5050
uses: actions/upload-artifact@v4
5151
with:
52-
name: turing-system-monitor_${{github.event.release.tag_name}}
52+
name: turing-system-monitor-${{github.event.release.tag_name}}
5353
path: tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}.exe
5454
if-no-files-found: error
5555

5656
- name: '📦 Archive Windows portable archive'
5757
uses: actions/upload-artifact@v4
5858
with:
59-
name: turing-system-monitor_${{github.event.release.tag_name}}-portable
59+
name: turing-system-monitor-${{github.event.release.tag_name}}-portable
6060
path: turing-system-monitor-${{github.event.release.tag_name}}-portable.zip
6161
if-no-files-found: error
6262

@@ -68,6 +68,6 @@ jobs:
6868

6969
- name: '📩 Publish Windows portable zip to Release'
7070
run: |
71-
gh release upload ${{github.event.release.tag_name}} tools\windows-installer\Output\turing-system-monitor-${{github.event.release.tag_name}}-portable.zip
71+
gh release upload ${{github.event.release.tag_name}} turing-system-monitor-${{github.event.release.tag_name}}-portable.zip
7272
env:
7373
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)