@@ -101,13 +101,58 @@ jobs:
101
101
Compress-Archive -Path *.msi -DestinationPath serial-monitor-${{ matrix.target }}.msi.zip
102
102
Move-Item -Path serial-monitor-${{ matrix.target }}.msi.zip Destination $env:GITHUB_WORKSPACE
103
103
104
- - name : Upload Artifacts
104
+ - name : Upload .deb and executable for Linux (Ubuntu)
105
+ if : contains(matrix.os, 'ubuntu')
106
+
107
+ env :
108
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
109
+ with :
110
+ upload_url : ${{ github.event.release.upload_url }}
111
+ asset_path : serial-monitor-${{ matrix.target }}.deb.zip
112
+ asset_name : serial-monitor-${{ matrix.target }}.deb.zip
113
+ asset_content_type : application/zip
114
+
115
+ - name : Upload .zip for Linux (Ubuntu executable)
116
+ if : contains(matrix.os, 'ubuntu')
117
+
118
+ env :
119
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
120
+ with :
121
+ upload_url : ${{ github.event.release.upload_url }}
122
+ asset_path : serial-monitor-${{ matrix.target }}.zip
123
+ asset_name : serial-monitor-${{ matrix.target }}.zip
124
+ asset_content_type : application/zip
125
+
126
+ - name : Upload .exe for Windows
127
+ if : contains(matrix.os, 'windows')
128
+
129
+ env :
130
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
131
+ with :
132
+ upload_url : ${{ github.event.release.upload_url }}
133
+ asset_path : serial-monitor-${{ matrix.target }}.exe.zip
134
+ asset_name : serial-monitor-${{ matrix.target }}.exe.zip
135
+ asset_content_type : application/zip
136
+
137
+ - name : Upload .msi for Windows
138
+ if : contains(matrix.os, 'windows')
139
+
140
+ env :
141
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
142
+ with :
143
+ upload_url : ${{ github.event.release.upload_url }}
144
+ asset_path : serial-monitor-${{ matrix.target }}.msi.zip
145
+ asset_name : serial-monitor-${{ matrix.target }}.msi.zip
146
+ asset_content_type : application/zip
147
+
148
+ - name : Upload .zip for macOS
149
+ if : contains(matrix.os, 'macos')
105
150
106
151
env :
107
152
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108
153
with :
109
154
upload_url : ${{ github.event.release.upload_url }}
110
- asset_path : serial-monitor-${{ matrix.target }}.${{ contains(matrix.os, 'ubuntu') && 'deb.zip' || contains(matrix.os, 'macos') && ' app.zip' || contains(matrix.os, 'windows') && contains(matrix.target, 'msvc') && 'msi.zip' || 'zip' }}
111
- asset_name : serial-monitor-${{ matrix.target }}.${{ contains(matrix.os, 'ubuntu') && 'deb.zip' || contains(matrix.os, 'macos') && ' app.zip' || contains(matrix.os, 'windows') && contains(matrix.target, 'msvc') && 'msi.zip' || 'zip' }}
112
- asset_content_type : binary
155
+ asset_path : serial-monitor-${{ matrix.target }}.app.zip
156
+ asset_name : serial-monitor-${{ matrix.target }}.app.zip
157
+ asset_content_type : application/zip
113
158
0 commit comments