@@ -57,41 +57,52 @@ jobs:
5757 if : contains(matrix.os, 'windows')
5858 run : cargo wix --features self_update
5959
60+ # Compress for Linux Binary
6061 - name : Compress Output (Linux Binary)
6162 if : contains(matrix.os, 'ubuntu')
6263 run : |
6364 cd target/release
6465 zip -r serial-monitor-${{ matrix.target }}.zip serial-monitor
66+ mv serial-monitor-${{ matrix.target }}.zip $GITHUB_WORKSPACE/
6567
68+ # Compress for Linux .deb Package
6669 - name : Compress Output (Linux .deb)
6770 if : contains(matrix.os, 'ubuntu')
6871 run : |
6972 cd target/release/bundle/deb
7073 zip serial-monitor-${{ matrix.target }}.deb.zip *.deb
74+ mv serial-monitor-${{ matrix.target }}.deb.zip $GITHUB_WORKSPACE/
7175
72- - name : Compress Output (macOS .app Bundle)
76+ # Compress for macOS (.app Bundle)
77+ - name : Compress Output (macOS)
7378 if : contains(matrix.os, 'macos')
7479 run : |
7580 cd target/release/bundle/osx
7681 zip -r serial-monitor-${{ matrix.target }}.app.zip Serial\ Monitor.app
82+ mv serial-monitor-${{ matrix.target }}.app.zip $GITHUB_WORKSPACE/
7783
84+ # Compress for Windows (.exe)
7885 - name : Compress Output (Windows .exe)
7986 if : contains(matrix.os, 'windows')
8087 run : |
8188 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
8290
91+ # Compress for Windows (.msi)
8392 - name : Compress Output (Windows .msi)
8493 if : contains(matrix.os, 'windows')
8594 run : |
8695 cd target/wix
8796 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
8898
8999 - name : Upload Artifacts
90100 uses : actions/upload-release-asset@v1.0.1
91101 env :
92102 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
93103 with :
94104 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
96106 asset_name : serial-monitor-${{ matrix.target }}.zip
97107 asset_content_type : binary
108+
0 commit comments