Skip to content

Commit 0156e16

Browse files
authored
nightly update fix check
1 parent 1d18aec commit 0156e16

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

.github/workflows/nightlydepolyci.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,40 +32,28 @@ jobs:
3232
- name: Get dependencies
3333
run: flutter pub get
3434

35-
# # Step 5: Analyze and test (uncomment if needed)
36-
# - name: Analyze code
37-
# run: flutter analyze --no-fatal-warnings --no-fatal-infos
38-
# # - name: Run tests
39-
# # run: flutter test
40-
4135
# Step 6: Build APK
4236
- name: Build APK
43-
run: |
44-
flutter build apk --build-number=${{ github.run_number }} --release
45-
mv build/app/outputs/flutter-apk/app-release.apk /home/runner/work/com.ccextractor.taskwarriorflutter.apk
46-
# The `--flavor fdroid` is optional but a good practice for F-Droid builds.
47-
# The mv command ensures a unique filename with the build number.
37+
run: flutter build apk --build-number=${{ github.run_number }} --release
38+
# No 'mv' command here yet
4839

4940
# Step 7: Push the APK to the fdroid-repo branch
5041
- name: Configure and push to fdroid-repo
5142
run: |
52-
# Configure Git credentials with the GITHUB_TOKEN
5343
git config --global user.name "github-actions[bot]"
5444
git config --global user.email "github-actions[bot]@users.noreply.github.com"
55-
56-
# Checkout the fdroid-repo branch
5745
git fetch origin fdroid-repo:fdroid-repo
5846
git checkout fdroid-repo
59-
60-
# Create a directory if it doesn't exist and move the APK
47+
6148
mkdir -p repo
62-
rm -f repo/com.ccextractor.taskwarriorflutter.apk || true
63-
mv /home/runner/work/com.ccextractor.taskwarriorflutter.apk repo/
64-
65-
# Add, commit, and push the new APK file
49+
# Don't remove the old APK!
50+
# Copy the new APK with a unique name
51+
mv build/app/outputs/flutter-apk/app-release.apk repo/com.ccextractor.taskwarriorflutter_${{ github.run_number }}.apk
52+
6653
git add repo/
6754
git commit -m "chore: Add new APK from build ${{ github.run_number }}"
68-
git push origin fdroid-repo
55+
# You can push here, or wait until after the fdroid update
56+
# git push origin fdroid-repo
6957
7058
# Step 8: Setup f-droid and run update
7159
- name: Setup F-Droid

0 commit comments

Comments
 (0)