From 28732fe34d98b75f1447aaa4b09f1600f66261ea Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 12 Oct 2025 16:06:10 +0300 Subject: [PATCH] publish flatpak bundle on release --- .github/workflows/flatpak.yml | 29 +++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/flatpak.yml diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml new file mode 100644 index 00000000..babcb93d --- /dev/null +++ b/.github/workflows/flatpak.yml @@ -0,0 +1,29 @@ +name: Publish Flatpak on Release + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Set up Flatpak + run: | + sudo apt install flatpak + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + + - name: Build Flatpak Bundle + run: | + flatpak-builder --force-clean build --install-deps-from=flathub --repo=repo --user io.github.yggverse.Yoda.yaml + flatpak build-bundle repo Yoda.flatpak io.github.yggverse.Yoda + + - name: Upload Flatpak Bundle + uses: actions/upload-artifact@v2 + with: + name: Yoda.flatpak + path: Yoda.flatpak \ No newline at end of file diff --git a/.gitignore b/.gitignore index fe21aa37..9046e577 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *flatpak* +!flatpak.yml build Cargo.lock repo