@@ -2,20 +2,25 @@ name: Flathub release
2
2
on :
3
3
push :
4
4
5
- jobs :
5
+ defaults :
6
6
run :
7
- name : Make release
7
+ working-directory : wger
8
+
9
+ jobs :
10
+ setup :
11
+ name : Setup
8
12
runs-on : ubuntu-latest
9
13
steps :
10
14
- name : Checkout code
11
15
uses : actions/checkout@v2
16
+ with :
17
+ path : wger
12
18
13
- - name : Checkout tools repo
19
+ - name : Checkout flathub repo
14
20
uses : actions/checkout@v3
15
21
with :
16
- repository : wger-project/flathub
22
+ repository : wger-project/test
17
23
path : flathub
18
-
19
24
- name : Setup Java
20
25
uses : actions/setup-java@v1
21
26
with :
@@ -47,15 +52,40 @@ jobs:
47
52
48
53
- name : Build application for linux
49
54
run : |
50
- sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
51
- flutter build linux --release
55
+ # sudo apt install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
56
+ # flutter build linux --release
52
57
cd flatpak
53
- dart flatpak_generator.dart spec.json
58
+ # dart flatpak_generator.dart spec.json
59
+
60
+ cp spec.json ../../flathub
54
61
env :
55
62
WGER_API_KEY : ${{ secrets.WGER_API_KEY }}
56
63
57
- - name : Archive code coverage results
64
+ - name : Push to flathub repository
65
+ uses : cpina/github-action-push-to-another-repository@main
66
+ env :
67
+ SSH_DEPLOY_KEY : ${{ secrets.SSH_DEPLOY_KEY }}
68
+ with :
69
+ source-directory : ' flathub'
70
+ destination-github-username : ' wger-project'
71
+ destination-repository-name : ' test'
72
+
73
+ target-branch : master
74
+ commit-message : Update spec.json
75
+
76
+ - name : Upload generated flatpak archive
58
77
uses : actions/upload-artifact@v3
59
78
with :
60
79
name : Flatpak file
61
- path : flatpak/wger-linux-x86_64.tar.gz
80
+ path : wger/flatpak/wger-linux-x86_64.tar.gz
81
+
82
+ # - name: Build AAB
83
+ # run: flutter build appbundle --release
84
+ # env:
85
+ # WGER_API_KEY: ${{ secrets.WGER_API_KEY }}
86
+
87
+ # - name: Upload generated aab archive
88
+ # uses: actions/upload-artifact@v3
89
+ # with:
90
+ # name: AAB file
91
+ # path: wger/build/app/outputs/bundle/release/app-release.aab
0 commit comments