From 55c5ab3a6d3a67fedd5021ad0e52e3628c7a2c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Fri, 17 Oct 2025 14:11:44 +0200 Subject: [PATCH] feat: ci appimage have manual triggers (#3424) --- .github/workflows/appimage.yml | 23 +++++++++++++++++++++-- .github/workflows/release.yml | 3 +++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml index 55d30548..9662b106 100644 --- a/.github/workflows/appimage.yml +++ b/.github/workflows/appimage.yml @@ -2,7 +2,26 @@ name: Build LNbits AppImage on: workflow_call: + inputs: + tag_name: + description: 'The tag name for the release' + required: true + type: string + upload_url: + description: 'The upload URL for the release' + required: true + type: string + workflow_dispatch: + inputs: + tag_name: + description: 'The tag name for the release' + required: true + type: string + upload_url: + description: 'The upload URL for the release' + required: true + type: string jobs: build-linux-package: @@ -75,7 +94,7 @@ jobs: # Build AppImage wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage chmod +x appimagetool-x86_64.AppImage - TAG_NAME=${{ github.event.release.tag_name }} + TAG_NAME=${{ inputs.tag_name }} APPIMAGE_NAME="LNbits-${TAG_NAME}.AppImage" ./appimagetool-x86_64.AppImage \ --updateinformation "gh-releases-zsync|lnbits|lnbits|latest|*.AppImage.zsync" \ @@ -93,7 +112,7 @@ jobs: - name: Upload Linux Release Asset uses: actions/upload-release-asset@v1 with: - upload_url: ${{ github.event.release.upload_url }} + upload_url: ${{ inputs.upload_url }} asset_path: ${{ env.APPIMAGE_NAME }} asset_name: ${{ env.APPIMAGE_NAME }} asset_content_type: application/octet-stream diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21e2821d..27781a49 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,3 +56,6 @@ jobs: appimage: needs: [ release ] uses: ./.github/workflows/appimage.yml + with: + tag_name: ${{ github.ref_name }} + upload_url: ${{ steps.create_release.outputs.upload_url }}