Using github.com/flatpak/flatpak-github-actions
This commit is contained in:
committed by
Geoffrey D. Bennett
parent
c8ecaeb15c
commit
492c87638e
37
.github/workflows/build-flatpak-package.yml
vendored
Normal file
37
.github/workflows/build-flatpak-package.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Build flatpak package
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
branches: '*'
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
env:
|
||||||
|
APP_NAME: alsa-scarlett-gui
|
||||||
|
APP_VERSION: ${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
flatpak:
|
||||||
|
name: "Flatpak"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: bilelmoussaoui/flatpak-github-actions:gnome-44
|
||||||
|
options: --privileged
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build flatpak package
|
||||||
|
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||||
|
with:
|
||||||
|
bundle: ${{ env.APP_NAME }}.flatpak
|
||||||
|
manifest-path: vu.b4.alsa-scarlett-gui.yml
|
||||||
|
cache-key: flatpak-builder-${{ github.sha }}
|
||||||
|
|
||||||
|
- name: Upload Release Asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.release.upload_url }}
|
||||||
|
asset_path: ./${{ env.APP_NAME }}.flatpak
|
||||||
|
asset_name: ${{ env.APP_NAME }}_${{ env.APP_VERSION }}.flatpak
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
Reference in New Issue
Block a user