Skip to content

Commit cea929a

Browse files
fixing release.yml
1 parent d8de8fc commit cea929a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)