File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,14 @@ jobs:
4141 KEYSTORE : ${{ secrets.KEYSTORE }}
4242 SIGNING_STORE_PASSWORD : ${{ secrets.SIGNING_STORE_PASSWORD }}
4343 run : |
44- version=$( grep " versionName" app/build.gradle | awk -F'"' '{print $2}' )
44+ version=$(grep ' versionName[[:space:]]*=' app/build.gradle.kts | grep -o '"[^"]*"' | head -n 1 | tr -d '"' )
4545 echo "${KEYSTORE}" | base64 -d > apksign.keystore
4646 ${ANDROID_HOME}/build-tools/34.0.0/apksigner sign --ks apksign.keystore --ks-pass env:SIGNING_STORE_PASSWORD "app/build/outputs/apk/release/app-release-unsigned.apk"
4747 mv app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/"tubular_v${version}.apk"
4848
4949 - name : Create release and upload
5050 run : |
51- version=$( grep " versionName" app/build.gradle | awk -F'"' '{print $2}' )
51+ version=$(grep ' versionName[[:space:]]*=' app/build.gradle.kts | grep -o '"[^"]*"' | head -n 1 | tr -d '"' )
5252 gh auth login --with-token <<<"${{ secrets.GITHUB_TOKEN }}"
5353 gh release create "v${version}" --title "${{ inputs.title }}" --notes-file ".github/changelog.md" --prerelease=${{ inputs.is_pre_release }} --repo polymorphicshade/Tubular
5454 gh release upload "v${version}" app/build/outputs/apk/release/*.apk --repo polymorphicshade/Tubular
You can’t perform that action at this time.
0 commit comments