Skip to content

Commit 4c2564e

Browse files
committed
upload bundles and binaries
1 parent 07494fd commit 4c2564e

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

.github/workflows/deployment.yml

+32-6
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,44 @@ jobs:
4545
- name: Build
4646
run: cargo build --features self_update --release
4747

48-
- name: Compress Output (Linux & macOS)
49-
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
48+
- name: Build .deb Package (Linux)
49+
if: contains(matrix.os, 'ubuntu')
50+
run: cargo bundle --release
51+
52+
- name: Build .msi Package (Windows)
53+
if: contains(matrix.os, 'windows')
54+
run: cargo wix --features self_update
55+
56+
- name: Compress Output (Linux Binary)
57+
if: contains(matrix.os, 'ubuntu')
5058
run: |
5159
cd target/release
52-
zip -r serial-monitor-${{ matrix.target }}.zip *
60+
zip -r serial-monitor-${{ matrix.target }}.zip serial-monitor
61+
62+
- name: Compress Output (Linux .deb)
63+
if: contains(matrix.os, 'ubuntu')
64+
run: |
65+
cd target/release/bundle/deb
66+
zip serial-monitor-${{ matrix.target }}.deb.zip *.deb
67+
68+
- name: Compress Output (macOS .app Bundle)
69+
if: contains(matrix.os, 'macos')
70+
run: |
71+
cd target/release/bundle/osx
72+
zip -r serial-monitor-${{ matrix.target }}.app.zip Serial\ Monitor.app
73+
74+
- name: Compress Output (Windows .exe)
75+
if: contains(matrix.os, 'windows')
76+
run: |
77+
Compress-Archive -Path target/release/serial-monitor.exe -DestinationPath serial-monitor-${{ matrix.target }}.exe.zip
5378
54-
- name: Compress Output (Windows)
79+
- name: Compress Output (Windows .msi)
5580
if: contains(matrix.os, 'windows')
5681
run: |
57-
Compress-Archive -Path target/release/* -DestinationPath serial-monitor-${{ matrix.target }}.zip
82+
cd target/wix
83+
Compress-Archive -Path *.msi -DestinationPath serial-monitor-${{ matrix.target }}.msi.zip
5884
59-
- name: Upload Artifact
85+
- name: Upload Artifacts
6086
uses: actions/[email protected]
6187
env:
6288
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)