Add workflow to build and upload debug APKs#9
Conversation
This workflow builds all debug APKs and uploads them as release assets when a release is published.
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
|
Caution Review failedThe pull request is closed. WalkthroughA new GitHub Actions workflow is introduced to automatically build debug APKs for all modules and upload them as release assets when a non-prerelease, non-draft release is published. The workflow discovers APK files post-build and conditionally uploads them if present. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Note Unit test generation is an Early Access feature. Expect some limitations and changes as we gather feedback and continue to improve it. Generating unit tests... This may take up to 20 minutes. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/workflows/android-release.yml (1)
34-45: Consider a simpler multi-line file handling approach.The current approach using
%0Aescaping is non-standard. While it works because GitHub Actions interprets%0Aas newlines, consider using a glob pattern or a simpler approach for clarity.Alternative: Use a glob pattern directly without the find/escape logic:
- - name: 📌 Define ALL APK Paths - id: apk_paths - run: | - # Finds all debug APKs in a standard Android project structure and saves them as a multi-line string. - # We use a glob search pattern here to find all of them. - FIND_COMMAND=$(find . -path '*/build/outputs/apk/debug/*-debug.apk' -type f) - - # We escape the newline characters for proper output handling in GitHub Actions - ESCAPED_PATHS="${FIND_COMMAND//$'\n'/%0A}" - - echo "APK_FILES=$ESCAPED_PATHS" >> $GITHUB_OUTPUT + - name: 📌 Verify APK Build + id: apk_paths + run: | + # Check if any debug APKs were built + if find . -path '*/build/outputs/apk/debug/*-debug.apk' -type f | grep -q .; then + echo "APK_FILES=true" >> $GITHUB_OUTPUT + fiThen update the upload step:
- name: 📤 Upload ALL APKs to Release Assets uses: softprops/action-gh-release@v1 - if: steps.apk_paths.outputs.APK_FILES != '' + if: steps.apk_paths.outputs.APK_FILES == 'true' with: - # This variable now contains all paths, separated by newlines - files: ${{ steps.apk_paths.outputs.APK_FILES }} + # Use glob pattern for discovery + files: '**/build/outputs/apk/debug/*-debug.apk'
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/android-release.yml(1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.9)
.github/workflows/android-release.yml
53-53: the runner of "softprops/action-gh-release@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: Build lyrics-maker
- GitHub Check: Build app
- GitHub Check: build
- GitHub Check: dependency-submission
| - name: 📤 Upload ALL APKs to Release Assets | ||
| uses: softprops/action-gh-release@v1 | ||
| if: steps.apk_paths.outputs.APK_FILES != '' | ||
| with: | ||
| # This variable now contains all paths, separated by newlines | ||
| files: ${{ steps.apk_paths.outputs.APK_FILES }} | ||
| token: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
softprops/action-gh-release latest version releases
💡 Result:
The latest release is v2.5.0 (released Dec 1, 2025). [1][2]
Sources:
[1] softprops/action-gh-release — Releases page.
[2] softprops/action-gh-release — repository README (usage).
Update softprops/action-gh-release to the latest major version.
The current version v1 is outdated. The latest release is v2.5.0. Update to v2 to ensure compatibility and access to recent bug fixes and improvements.
- name: 📤 Upload ALL APKs to Release Assets
- uses: softprops/action-gh-release@v1
+ uses: softprops/action-gh-release@v2
if: steps.apk_paths.outputs.APK_FILES != ''🧰 Tools
🪛 actionlint (1.7.9)
53-53: the runner of "softprops/action-gh-release@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents
.github/workflows/android-release.yml around lines 52 to 58: the workflow pins
softprops/action-gh-release to the outdated tag v1; update the action reference
to the latest major version (use softprops/action-gh-release@v2 or @v2.5.0) so
the job uses the current release with bug fixes and improvements—replace the
uses line accordingly and keep the existing inputs (files and token) unchanged.
|
Caution ⛔ There was a permission issue. |
This workflow builds all debug APKs and uploads them as release assets when a release is published.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.