publish flatpak bundle on release

This commit is contained in:
yggverse 2025-10-12 16:06:10 +03:00
parent 8972ca17e1
commit 28732fe34d
2 changed files with 30 additions and 0 deletions

29
.github/workflows/flatpak.yml vendored Normal file
View file

@ -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

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
*flatpak* *flatpak*
!flatpak.yml
build build
Cargo.lock Cargo.lock
repo repo