Skip to content

Commit b724720

Browse files
fix(CI): normal nightly & fdroid flavor build paths. (#1722)
* Refactor nightly build workflow to use temporary paths for APK artifacts. Updated paths for both standard and F-Droid APK uploads to /tmp directory for improved clarity and organization. * Update nightly build workflow to prevent tagging and releases for pull requests. Added condition to skip release step if the workflow is triggered by a pull request.
1 parent ef36994 commit b724720

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/nightly-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,28 +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
173+
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk /tmp/app-debug-normal.apk
174174
echo "VERSION: $UPDATED_VERSION" >> $GITHUB_STEP_SUMMARY
175175
176176
- name: Upload APK Artifact
177177
uses: actions/upload-artifact@v4
178178
with:
179179
name: app-debug-${{ env.GIT_COMMIT }}
180-
path: platforms/android/app/build/outputs/apk/debug/app-debug-normal.apk
180+
path: /tmp/app-debug-normal.apk
181181

182182
- name: Run npm build paid dev apk fdroid (for F-Droid)
183183
if: ${{ !inputs.is_PR }}
184184
run: |
185185
node utils/storage_manager.mjs y
186186
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
187+
mv platforms/android/app/build/outputs/apk/debug/app-debug.apk /tmp/app-debug-fdroid.apk
188188
189189
- name: Upload APK Artifact
190190
uses: actions/upload-artifact@v4
191191
if: ${{ !inputs.is_PR }}
192192
with:
193193
name: app-debug-fdroid-${{ env.GIT_COMMIT }}
194-
path: platforms/android/app/build/outputs/apk/debug/app-debug-fdroid.apk
194+
path: /tmp/app-debug-fdroid.apk
195195

196196
- name: remove keystore and build.json
197197
run: |
@@ -226,15 +226,15 @@
226226
- name: Release Nightly Version
227227
# Only run this step, if not called from another workflow. And a previous step is successful with releasedRequired=true
228228
id: release
229-
if: ${{ ! inputs.skip_tagging_and_releases && success() && env.releaseRequired == 'true' }}
229+
if: ${{ ! inputs.skip_tagging_and_releases && success() && env.releaseRequired == 'true' && !inputs.is_PR }}
230230
uses: softprops/action-gh-release@v2
231231
with:
232232
prerelease: true
233233
name: ${{ env.UPDATED_VERSION }}
234234
tag_name: ${{ env.UPDATED_VERSION }}
235235
files: |
236-
platforms/android/app/build/outputs/apk/debug/app-debug-normal.apk
237-
platforms/android/app/build/outputs/apk/debug/app-debug-fdroid.apk
236+
/tmp/app-debug-normal.apk
237+
/tmp/app-debug-fdroid.apk
238238
body: |
239239
Automated Nightly (pre-release) Releases for Today
240240

0 commit comments

Comments
 (0)