File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 - name : Extract version code
2525 run : echo "VERSION_CODE=$(grep -o "^\s*versionCode\s*=\s*[0-9]\+" app/build.gradle.kts | awk '{ print $3 }' | tr -d \''"\\')" >> $GITHUB_ENV
2626
27- - name : Build app release
27+ - name : Build app release & export libraries
2828 env :
2929 GOINGELECTRIC_API_KEY : ${{ secrets.GOINGELECTRIC_API_KEY }}
3030 OPENCHARGEMAP_API_KEY : ${{ secrets.OPENCHARGEMAP_API_KEY }}
3838 KEYSTORE_PASSWORD : ${{ secrets.KEYSTORE_PASSWORD }}
3939 KEYSTORE_ALIAS : ${{ secrets.KEYSTORE_ALIAS }}
4040 KEYSTORE_ALIAS_PASSWORD : ${{ secrets.KEYSTORE_ALIAS_PASSWORD }}
41- run : ./gradlew assembleRelease --no-daemon
41+ run : ./gradlew exportLibraryDefinitions assembleRelease --no-daemon
4242
4343 - name : release
4444 uses : actions/create-release@v1
8888 asset_path : app/build/outputs/apk/fossAutomotive/release/app-foss-automotive-release.apk
8989 asset_name : app-foss-automotive-release.apk
9090 asset_content_type : application/vnd.android.package-archive
91+ - name : upload Licenses
92+ uses : actions/upload-release-asset@v1
93+ env :
94+ GITHUB_TOKEN : ${{ github.token }}
95+ with :
96+ upload_url : ${{ steps.create_release.outputs.upload_url }}
97+ asset_path : app/build/generated/aboutLibraries/aboutlibraries.json
98+ asset_name : aboutlibraries.json
99+ asset_content_type : application/json
You can’t perform that action at this time.
0 commit comments