Skip to content

Commit 5864f2b

Browse files
committed
Add first version of github actions for building flathub packages
1 parent 120052c commit 5864f2b

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Flathub release
2+
on:
3+
push:
4+
5+
jobs:
6+
run:
7+
name: Make release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Checkout tools repo
14+
uses: actions/checkout@v3
15+
with:
16+
repository: wger-project/flathub
17+
path: flathub
18+
19+
- name: Setup Java
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 17.x
23+
24+
- name: Setup Flutter
25+
uses: subosito/flutter-action@v1
26+
with:
27+
channel: 'stable'
28+
flutter-version: '3.7.x'
29+
30+
- name: Decrypt config files
31+
run: |
32+
cd ./fastlane/metadata/envfiles
33+
chmod +x ./decrypt_secrets.sh
34+
./decrypt_secrets.sh
35+
env:
36+
DECRYPTKEY_PLAYSTORE: ${{ secrets.DECRYPTKEY_PLAYSTORE }}
37+
DECRYPTKEY_PLAYSTORE_SIGNING_KEY: ${{ secrets.DECRYPTKEY_PLAYSTORE_SIGNING_KEY }}
38+
DECRYPTKEY_PROPERTIES: ${{ secrets.DECRYPTKEY_PROPERTIES }}
39+
40+
- name: Flutter info
41+
run: |
42+
dart --version
43+
flutter --version
44+
45+
- name: Install Flutter dependencies
46+
run: flutter pub get
47+
48+
- name: Build application for linux
49+
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
52+
cd flatpak
53+
dart flatpak_generator.dart spec.json
54+
env:
55+
WGER_API_KEY: ${{ secrets.WGER_API_KEY }}
56+
57+
- name: Archive code coverage results
58+
uses: actions/upload-artifact@v3
59+
with:
60+
name: Flatpak file
61+
path: flatpak/wger-linux-x86_64.tar.gz

0 commit comments

Comments
 (0)