@@ -57,41 +57,52 @@ jobs:
57
57
if : contains(matrix.os, 'windows')
58
58
run : cargo wix --features self_update
59
59
60
+ # Compress for Linux Binary
60
61
- name : Compress Output (Linux Binary)
61
62
if : contains(matrix.os, 'ubuntu')
62
63
run : |
63
64
cd target/release
64
65
zip -r serial-monitor-${{ matrix.target }}.zip serial-monitor
66
+ mv serial-monitor-${{ matrix.target }}.zip $GITHUB_WORKSPACE/
65
67
68
+ # Compress for Linux .deb Package
66
69
- name : Compress Output (Linux .deb)
67
70
if : contains(matrix.os, 'ubuntu')
68
71
run : |
69
72
cd target/release/bundle/deb
70
73
zip serial-monitor-${{ matrix.target }}.deb.zip *.deb
74
+ mv serial-monitor-${{ matrix.target }}.deb.zip $GITHUB_WORKSPACE/
71
75
72
- - name : Compress Output (macOS .app Bundle)
76
+ # Compress for macOS (.app Bundle)
77
+ - name : Compress Output (macOS)
73
78
if : contains(matrix.os, 'macos')
74
79
run : |
75
80
cd target/release/bundle/osx
76
81
zip -r serial-monitor-${{ matrix.target }}.app.zip Serial\ Monitor.app
82
+ mv serial-monitor-${{ matrix.target }}.app.zip $GITHUB_WORKSPACE/
77
83
84
+ # Compress for Windows (.exe)
78
85
- name : Compress Output (Windows .exe)
79
86
if : contains(matrix.os, 'windows')
80
87
run : |
81
88
Compress-Archive -Path target/release/serial-monitor.exe -DestinationPath serial-monitor-${{ matrix.target }}.exe.zip
89
+ Move-Item -Path serial-monitor-${{ matrix.target }}.exe.zip -Destination $env:GITHUB_WORKSPACE
82
90
91
+ # Compress for Windows (.msi)
83
92
- name : Compress Output (Windows .msi)
84
93
if : contains(matrix.os, 'windows')
85
94
run : |
86
95
cd target/wix
87
96
Compress-Archive -Path *.msi -DestinationPath serial-monitor-${{ matrix.target }}.msi.zip
97
+ Move-Item -Path serial-monitor-${{ matrix.target }}.msi.zip Destination $env:GITHUB_WORKSPACE
88
98
89
99
- name : Upload Artifacts
90
100
91
101
env :
92
102
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
93
103
with :
94
104
upload_url : ${{ github.event.release.upload_url }}
95
- asset_path : ./target/release/ serial-monitor-${{ matrix.target }}.zip
105
+ asset_path : serial-monitor-${{ matrix.target }}.zip
96
106
asset_name : serial-monitor-${{ matrix.target }}.zip
97
107
asset_content_type : binary
108
+
0 commit comments