diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7536c5..7c9c2f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,7 +31,7 @@ jobs: run: | # Read values from version.txt APPLICATION_ID=$(grep '^APPLICATION_ID=' version.txt | awk -F 'APPLICATION_ID=' '{print $2}') - VERSION_NAME=$(grep '^VERSION_NAME=' version.txt | awk -F 'VERSION_NAME=' '{print $2}') + VERSION_NAME=$(grep '^VERSION_NAME=' version.txt | awk -F 'VERSION_NAME=v' '{print $2}') VERSION_CODE=$(grep '^VERSION_CODE=' version.txt | awk -F 'VERSION_CODE=' '{print $2}') TAG=$(cat release.txt) # Read the tag from release.txt RELEASE_NOTES=$(curl -s "https://api.github.com/repos/jellyfin/jellyfin-androidtv/releases/tags/$TAG" | jq -r '.body') @@ -64,7 +64,7 @@ jobs: sed -i 's/applicationId = namespace/applicationId = "'"$APPLICATION_ID"'"/' app-release/app/build.gradle.kts sed -i 's/versionName = .*/versionName = "'"$VERSION_NAME"'"/' app-release/app/build.gradle.kts sed -i "s/versionCode = .*/versionCode = $VERSION_CODE/" app-release/app/build.gradle.kts - sed -i "s/setProperty(\"archivesBaseName\", \".*\")/setProperty(\"archivesBaseName\", \"alaskartv-androidtv-v0.2.9\")/" app-release/app/build.gradle.kts + sed -i "s/setProperty(\"archivesBaseName\", \".*\")/setProperty(\"archivesBaseName\", \"alaskartv-androidtv-v$VERSION_NAME\")/" app-release/app/build.gradle.kts - name: Update about.kt run: | @@ -119,6 +119,7 @@ jobs: - name: Build APK run: | cd app-release + ./gradlew clean ./gradlew assembleRelease - name: Build AAB diff --git a/release.txt b/release.txt index 2b91414..c96e646 100644 --- a/release.txt +++ b/release.txt @@ -1 +1,2 @@ v0.18.3 +