8585 mkdir -p android
8686 echo "${{ secrets.env }}" | tr -d '\r' > lib/.env
8787 echo "${{ secrets.envgdart }}" | tr -d '\r' > lib/utils/env.g.dart
88- echo "${{ secrets.keyproperties }}" | tr -d '\r' > android/key.properties
89- echo "${{ secrets.uploadkeystore }}" | base64 -d > android/app/upload-keystore.jks
9088 echo "Created files:"
9189 ls -la lib/ lib/utils android/ android/app/
9290
@@ -113,20 +111,6 @@ jobs:
113111
114112 - name : Build and release
115113 run : fastforge release --name linux
116-
117- - name : Remove APKs created during Linux build
118- run : |
119- VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //' | cut -d'+' -f1 | tr -d '\r')
120- VERSION="$(echo -n "$VERSION" | tr -d '\r')"
121-
122- # Only delete APKs from this job’s dist folder
123- if [ -d "dist/$VERSION" ]; then
124- echo "Cleaning APKs from dist/$VERSION ..."
125- find "dist/$VERSION" -type f -name "*.apk" -delete
126- fi
127-
128- echo "Remaining Linux artifacts:"
129- ls -la "dist/$VERSION" || echo "No dist folder found"
130114
131115 - name : Upload build artifacts
132116 uses : actions/upload-artifact@v4
@@ -136,21 +120,15 @@ jobs:
136120
137121 ANDROID :
138122 name : Android
139- runs-on : ubuntu-22.04
123+ runs-on : ubuntu-latest
140124 environment : workflow
141- needs : [VERSION_BUMP, LINUX ]
125+ needs : [VERSION_BUMP]
142126 steps :
143127 - name : Checkout repository
144128 uses : actions/checkout@v4
145129 with :
146130 ref : ${{ github.ref }}
147131
148- - name : Set up JDK 17
149- uses : actions/setup-java@v3
150- with :
151- distribution : ' temurin'
152- java-version : ' 17'
153-
154132 - name : Setup Flutter
155133 uses : subosito/flutter-action@v2
156134 with :
0 commit comments