Skip to content

CreateFlatpak

CreateFlatpak #31

Workflow file for this run

name: CreateFlatpak
on:
push:
branches:
- 'main'
paths:
- 'org.gramps_project.Gramps.yml'
workflow_dispatch:
jobs:
flatpak:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: InstallFlatpak
run: |
sudo add-apt-repository ppa:flatpak/stable
sudo apt update
sudo apt install flatpak flatpak-builder python3-pip
- name: SetupFlatpak
run: |
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.gnome.Platform//44 org.gnome.Sdk//44 -y
- name: BuildFlatpak
run: |
flatpak-builder --repo=repo --force-clean build-dir org.gramps_project.Gramps.yml
- name: BuildBundle
run: |
flatpak build-bundle repo gramps.flatpak org.gramps_project.Gramps
- name: UploadBundle
uses: actions/upload-artifact@v3
with:
name: gramps.flatpak
path: gramps.flatpak