Skip to content

Commit

Permalink
feat: add archive to release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinLoeper committed Feb 14, 2021
1 parent a1266d9 commit 94e61ff
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/build-app-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ jobs:
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: "Signed-off-by: ${{ github.actor }}"

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

- name: Upload Release Asset - Archive
uses: actions/upload-release-asset@v1
id: upload-release-asset-archive
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: nesto-usbproxy_${{ steps.version.outputs.NEW_VERSION }}_armhf.tar.bz2
asset_name: nesto-usbproxy_${{ steps.version.outputs.NEW_VERSION }}_armhf.tar.bz2
asset_content_type: application/vnd.debian.binary-package

upload-package:
name: Upload nesto-usbproxy debian package into nesto repository in S3
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ configure_file(
add_custom_target(uninstall
${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
)

0 comments on commit 94e61ff

Please sign in to comment.