Skip to content

Commit

Permalink
ci/cd:Upload APK to Release
Browse files Browse the repository at this point in the history
  • Loading branch information
MostafaMohamed2002 committed May 2, 2024
1 parent f754ab7 commit 5794ba1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/android_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,14 @@ jobs:
tag_name: debug-${{ steps.get_date.outputs.date }} # Use the current date to create a unique tag
release_name: Debug Release ${{ steps.get_date.outputs.date }}
draft: false
prerelease: true
prerelease: true

- name: Upload APK to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This is the upload URL returned from the create_release step
asset_path: ./app/build/outputs/apk/debug/app-debug.apk # Update this to match the path of your APK file
asset_name: app-debug.apk
asset_content_type: application/vnd.android.package-archive

0 comments on commit 5794ba1

Please sign in to comment.