Skip to content

Commit ef36994

Browse files
Add F-droid Build in GH nightly releases (Acode-Foundation#1719)
* Enhance nightly build workflow to support F-Droid APK generation and artifact uploads. Added steps to build and upload both standard and F-Droid APKs with appropriate naming conventions. * Update nightly-build.yml * Uncomment conditional for repository owner check * Update nightly build workflow to upload F-Droid APK with corrected naming convention.
1 parent 572944a commit ef36994

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/nightly-build.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,28 @@
170170
run: |
171171
node utils/storage_manager.mjs y
172172
npm run build paid dev apk
173+
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk platforms/android/app/build/outputs/apk/debug/app-debug-normal.apk
173174
echo "VERSION: $UPDATED_VERSION" >> $GITHUB_STEP_SUMMARY
174-
175+
175176
- name: Upload APK Artifact
176177
uses: actions/upload-artifact@v4
177178
with:
178179
name: app-debug-${{ env.GIT_COMMIT }}
179-
path: platforms/android/app/build/outputs/apk/debug/app-debug.apk
180+
path: platforms/android/app/build/outputs/apk/debug/app-debug-normal.apk
181+
182+
- name: Run npm build paid dev apk fdroid (for F-Droid)
183+
if: ${{ !inputs.is_PR }}
184+
run: |
185+
node utils/storage_manager.mjs y
186+
npm run build paid dev apk fdroid
187+
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk platforms/android/app/build/outputs/apk/debug/app-debug-fdroid.apk
188+
189+
- name: Upload APK Artifact
190+
uses: actions/upload-artifact@v4
191+
if: ${{ !inputs.is_PR }}
192+
with:
193+
name: app-debug-fdroid-${{ env.GIT_COMMIT }}
194+
path: platforms/android/app/build/outputs/apk/debug/app-debug-fdroid.apk
180195

181196
- name: remove keystore and build.json
182197
run: |
@@ -218,7 +233,8 @@
218233
name: ${{ env.UPDATED_VERSION }}
219234
tag_name: ${{ env.UPDATED_VERSION }}
220235
files: |
221-
platforms/android/app/build/outputs/apk/debug/app-debug.apk
236+
platforms/android/app/build/outputs/apk/debug/app-debug-normal.apk
237+
platforms/android/app/build/outputs/apk/debug/app-debug-fdroid.apk
222238
body: |
223239
Automated Nightly (pre-release) Releases for Today
224240

0 commit comments

Comments
 (0)