Skip to content

Commit 3dd8df6

Browse files
committed
Workflow: adjusted workflow to build from docker
1 parent d66735f commit 3dd8df6

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

.github/workflows/build-release.yaml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,6 @@ jobs:
1818
- name: Set Gradle Java Home
1919
run: sed -i '$d' android/gradle.properties
2020

21-
- name: Set Up Java
22-
uses: actions/setup-java@v3
23-
with:
24-
distribution: "oracle"
25-
java-version: "17"
26-
cache: gradle
27-
28-
- name: Set Up Flutter
29-
uses: subosito/flutter-action@v2
30-
with:
31-
flutter-version: "3.27.2"
32-
channel: "stable"
33-
cache: true
34-
3521
- name: Decode Keystore
3622
run: |
3723
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > upload-keystore.jks
@@ -43,15 +29,15 @@ jobs:
4329
echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties
4430
echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties
4531
echo "storeFile=upload-keystore.jks" >> android/key.properties
46-
cat android/key.properties
47-
48-
- name: Install Dependencies
49-
run: flutter pub get
5032
51-
- name: Build APK
52-
run: flutter build apk --release
33+
- name: Build Flutter app using Docker
34+
run: |
35+
docker build -t slcmapk .
36+
37+
docker run --rm \
38+
-v ${{ github.workspace }}/build/app/outputs/flutter-apk:/build/app/outputs/flutter-apk \
39+
slcmapk
5340
54-
- name: Upload APK
5541
uses: actions/upload-artifact@v4
5642
with:
5743
name: release-apk

0 commit comments

Comments
 (0)