-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (31 loc) · 978 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CreateFlatpak
on:
pull_request:
paths:
- 'org.gramps_project.Gramps.yml'
workflow_dispatch:
jobs:
flatpak:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- 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//45 org.gnome.Sdk//45 -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@main
with:
name: gramps.flatpak
path: gramps.flatpak