Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Don't relocate apk output path (#242)
Browse files Browse the repository at this point in the history
* Don't relocate apk path

* Update upload artifacts

* Exchange
  • Loading branch information
Goooler authored Oct 10, 2022
1 parent 5bb0e42 commit a6f1da0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,5 @@ jobs:
- run: ./gradlew app:assembleProdRelease
- uses: actions/upload-artifact@v3
with:
path: app/build/*.apk
name: build-outputs
path: app/build/outputs/apk/prod/release/*.apk
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
- run: ./gradlew app:assembleProdRelease
- uses: ncipollo/release-action@v1
with:
artifacts: "app/build/*.apk"
artifacts: app/build/outputs
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ android {
dependenciesInfo.includeInApk = false
applicationVariants.configureEach {
outputs.configureEach {
(this as? ApkVariantOutputImpl)?.outputFileName = "../../../../" +
(this as? ApkVariantOutputImpl)?.outputFileName =
"${appName}_${versionName}_${versionCode}_${flavorName}_${buildType.name}.apk"
}
}
Expand Down

0 comments on commit a6f1da0

Please sign in to comment.