Skip to content

Commit

Permalink
Merge pull request #58 from mobinjafari/mobinjafari-patch-1
Browse files Browse the repository at this point in the history
Ci/Cd assembleRelease
  • Loading branch information
mobinjafari committed Jun 29, 2023
2 parents 5d702a0 + 3fa4b4f commit 5be2fda
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 17

apk:
name: Generate APK
needs: test
Expand All @@ -35,8 +36,9 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: apk
path: app/build/outputs/apk/debug/app-debug.apk
release :
path: app/build/outputs/apk/release/app-release.apk

release:
name: Release APK
needs: apk
if: startsWith(github.ref, 'refs/tags/v')
Expand All @@ -61,7 +63,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: apk/app-debug.apk
asset_path: apk/app-release.apk
asset_name: MensaApp.apk
asset_content_type: application/zip

asset_content_type: application/vnd.android.package-archive

0 comments on commit 5be2fda

Please sign in to comment.