StreamVault is a TV-first free IPTV player for Android TV built with Kotlin, Jetpack Compose, Room, Hilt, and Media3.
Kotlin iptv-player
Update beta.yml
David Nashash9c318ebb1ae6
diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.ymlindex 44615d6d..98695c02 100644--- a/.github/workflows/beta.yml+++ b/.github/workflows/beta.yml@@ -11,10 +11,13 @@ permissions:jobs:build-beta:+ if: github.ref == 'refs/heads/develop'runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4+ with:+ ref: ${{ github.sha }}- name: Read app versionid: app_version@@ -23,6 +26,7 @@ jobs:VERSION_NAME=$(sed -n 's/.*versionName = "\(.*\)".*/\1/p' app/build.gradle.kts | head -n 1)VERSION_CODE=$(sed -n 's/.*versionCode = \([0-9][0-9]*\).*/\1/p' app/build.gradle.kts | head -n 1)SHORT_SHA="${GITHUB_SHA::7}"+ BETA_SEQUENCE=$(printf "%06d.%02d" "$GITHUB_RUN_NUMBER" "$GITHUB_RUN_ATTEMPT")if [ -z "$VERSION_NAME" ] || [ -z "$VERSION_CODE" ]; thenecho "Failed to read app version from app/build.gradle.kts"@@ -32,14 +36,15 @@ jobs:echo "version_name=$VERSION_NAME" >> "$GITHUB_OUTPUT"echo "version_code=$VERSION_CODE" >> "$GITHUB_OUTPUT"echo "short_sha=$SHORT_SHA" >> "$GITHUB_OUTPUT"- echo "beta_tag=v$VERSION_NAME-beta-$SHORT_SHA" >> "$GITHUB_OUTPUT"- echo "apk_name=StreamVault-$VERSION_NAME-beta-$SHORT_SHA.apk" >> "$GITHUB_OUTPUT"+ echo "beta_sequence=$BETA_SEQUENCE" >> "$GITHUB_OUTPUT"+ echo "beta_tag=v$VERSION_NAME-beta.$BETA_SEQUENCE" >> "$GITHUB_OUTPUT"+ echo "apk_name=StreamVault-$VERSION_NAME-beta.$BETA_SEQUENCE.apk" >> "$GITHUB_OUTPUT"- name: Set up JDK 17uses: actions/setup-java@v4with:java-version: '17'- distribution: 'temurin'+ distribution: temurincache: gradle- name: Set up Gradle@@ -78,10 +83,12 @@ jobs:run: |mkdir -p distAPK_PATH=$(find app/build/outputs/apk/beta -maxdepth 1 -name '*.apk' | head -n 1)+if [ -z "$APK_PATH" ]; thenecho "No beta APK produced."exit 1fi+cp "$APK_PATH" "dist/${{ steps.app_version.outputs.apk_name }}"cp "$APK_PATH" dist/StreamVault-beta.apk@@ -95,11 +102,13 @@ jobs:publish-beta:needs: build-beta- if: github.ref == 'refs/heads/develop' || github.event_name == 'workflow_dispatch'+ if: github.ref == 'refs/heads/develop'runs-on: ubuntu-lateststeps:- uses: actions/checkout@v4+ with:+ ref: ${{ github.sha }}- name: Read app versionid: app_version@@ -107,9 +116,17 @@ jobs:run: |VERSION_NAME=$(sed -n 's/.*versionName = "\(.*\)".*/\1/p' app/build.gradle.kts | head -n 1)SHORT_SHA="${GITHUB_SHA::7}"+ BETA_SEQUENCE=$(printf "%06d.%02d" "$GITHUB_RUN_NUMBER" "$GITHUB_RUN_ATTEMPT")++ if [ -z "$VERSION_NAME" ]; then+ echo "Failed to read app version from app/build.gradle.kts"+ exit 1+ fi+echo "version_name=$VERSION_NAME" >> "$GITHUB_OUTPUT"echo "short_sha=$SHORT_SHA" >> "$GITHUB_OUTPUT"- echo "beta_tag=v$VERSION_NAME-beta-$SHORT_SHA" >> "$GITHUB_OUTPUT"+ echo "beta_sequence=$BETA_SEQUENCE" >> "$GITHUB_OUTPUT"+ echo "beta_tag=v$VERSION_NAME-beta.$BETA_SEQUENCE" >> "$GITHUB_OUTPUT"- name: Download beta APK artifactuses: actions/download-artifact@v4@@ -121,10 +138,12 @@ jobs:uses: softprops/action-gh-release@v2with:tag_name: ${{ steps.app_version.outputs.beta_tag }}- name: StreamVault Beta ${{ steps.app_version.outputs.version_name }} (${{ steps.app_version.outputs.short_sha }})+ target_commitish: ${{ github.sha }}+ name: StreamVault Beta ${{ steps.app_version.outputs.version_name }} build ${{ steps.app_version.outputs.beta_sequence }}body: |Automated beta build from `develop`.+ Beta sequence: `${{ steps.app_version.outputs.beta_sequence }}`Commit: `${{ github.sha }}`files: |dist/*.apk