Skip to content

Commit 94e61ff

Browse files
committed
feat: add archive to release assets
1 parent a1266d9 commit 94e61ff

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/build-app-release.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ jobs:
9595
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
9696
body: "Signed-off-by: ${{ github.actor }}"
9797

98-
- name: Upload Release Asset
98+
- name: Compress the release asset
99+
run: |
100+
tar -cvjSf nesto-usbproxy_${{ steps.version.outputs.NEW_VERSION }}_armhf.tar.bz2 usbproxy/nesto-usbproxy_${{ steps.version.outputs.NEW_VERSION }}_armhf.deb
101+
102+
- name: Upload Release Asset - Debian Package
99103
uses: actions/upload-release-asset@v1
100104
id: upload-release-asset
101105
env:
@@ -106,6 +110,17 @@ jobs:
106110
asset_name: nesto-usbproxy_${{ steps.version.outputs.NEW_VERSION }}_armhf.deb
107111
asset_content_type: application/vnd.debian.binary-package
108112

113+
- name: Upload Release Asset - Archive
114+
uses: actions/upload-release-asset@v1
115+
id: upload-release-asset-archive
116+
env:
117+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118+
with:
119+
upload_url: ${{ steps.create_release.outputs.upload_url }}
120+
asset_path: nesto-usbproxy_${{ steps.version.outputs.NEW_VERSION }}_armhf.tar.bz2
121+
asset_name: nesto-usbproxy_${{ steps.version.outputs.NEW_VERSION }}_armhf.tar.bz2
122+
asset_content_type: application/vnd.debian.binary-package
123+
109124
upload-package:
110125
name: Upload nesto-usbproxy debian package into nesto repository in S3
111126
runs-on: ubuntu-latest

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ configure_file(
3636
add_custom_target(uninstall
3737
${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
3838
)
39-
39+

0 commit comments

Comments
 (0)