feat: ci appimage have manual triggers (#3424)
This commit is contained in:
parent
bd07a319ab
commit
55c5ab3a6d
2 changed files with 24 additions and 2 deletions
23
.github/workflows/appimage.yml
vendored
23
.github/workflows/appimage.yml
vendored
|
|
@ -2,7 +2,26 @@ name: Build LNbits AppImage
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
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:
|
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:
|
jobs:
|
||||||
build-linux-package:
|
build-linux-package:
|
||||||
|
|
@ -75,7 +94,7 @@ jobs:
|
||||||
# Build AppImage
|
# Build AppImage
|
||||||
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||||
chmod +x 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"
|
APPIMAGE_NAME="LNbits-${TAG_NAME}.AppImage"
|
||||||
./appimagetool-x86_64.AppImage \
|
./appimagetool-x86_64.AppImage \
|
||||||
--updateinformation "gh-releases-zsync|lnbits|lnbits|latest|*.AppImage.zsync" \
|
--updateinformation "gh-releases-zsync|lnbits|lnbits|latest|*.AppImage.zsync" \
|
||||||
|
|
@ -93,7 +112,7 @@ jobs:
|
||||||
- name: Upload Linux Release Asset
|
- name: Upload Linux Release Asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
upload_url: ${{ inputs.upload_url }}
|
||||||
asset_path: ${{ env.APPIMAGE_NAME }}
|
asset_path: ${{ env.APPIMAGE_NAME }}
|
||||||
asset_name: ${{ env.APPIMAGE_NAME }}
|
asset_name: ${{ env.APPIMAGE_NAME }}
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
|
|
|
||||||
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -56,3 +56,6 @@ jobs:
|
||||||
appimage:
|
appimage:
|
||||||
needs: [ release ]
|
needs: [ release ]
|
||||||
uses: ./.github/workflows/appimage.yml
|
uses: ./.github/workflows/appimage.yml
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref_name }}
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue