From 492c87638e901477408b1a1ff0da85d55a768c41 Mon Sep 17 00:00:00 2001 From: Guillaume <1017720+gwilherm@users.noreply.github.com> Date: Mon, 16 Oct 2023 21:29:38 +0200 Subject: [PATCH] Using github.com/flatpak/flatpak-github-actions --- .github/workflows/build-flatpak-package.yml | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build-flatpak-package.yml diff --git a/.github/workflows/build-flatpak-package.yml b/.github/workflows/build-flatpak-package.yml new file mode 100644 index 0000000..56782d2 --- /dev/null +++ b/.github/workflows/build-flatpak-package.yml @@ -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