Debloat your Android TV, install apps, browse and transfer files on it, all from your phone. Just 3 MB, no tracking, no root, no PC.
Publish an alpha on every push to dev
jesse-agent-362f2b91240f0b9
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 941969b..7307073 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -2,7 +2,7 @@ name: Releaseon:push:- branches: [main]+ branches: [main, dev]# Alpha tags only. Prod's vX.Y.Z tags have no "-alpha." and don't match.tags: ['v*-alpha.*']@@ -14,10 +14,11 @@ concurrency:cancel-in-progress: falsejobs:- # Alpha: pushing a tag like v0.1.0-alpha.1 on a dev commit publishes that- # tag as a pre-release. app.tellyscope.alpha installs next to the release build.+ # Alpha: every push to dev publishes the next v<versionName>-alpha.N as a+ # pre-release; pushing such a tag on a dev commit by hand does the same for+ # that tag. app.tellyscope.alpha installs next to the release build.alpha:- if: github.ref_type == 'tag'+ if: github.ref_type == 'tag' || github.ref == 'refs/heads/dev'runs-on: ubuntu-latesttimeout-minutes: 30permissions:@@ -30,6 +31,16 @@ jobs:- name: Tagid: tagrun: |+ NAME=$(sed -nE 's/^ *versionName = "([^"]+)".*/\1/p' app/build.gradle.kts)+ if [ "$GITHUB_REF_TYPE" = branch ]; then+ # A push to dev: one past the highest alpha of this version. The tag+ # is pushed only after the build passes, in the pre-release step.+ LAST=$(git tag -l "v$NAME-alpha.*" | sed 's/.*-alpha\.//' | grep -E '^[0-9]+$' | sort -n | tail -n 1)+ N=$(( ${LAST:-0} + 1 ))+ echo "tag=v$NAME-alpha.$N" >> "$GITHUB_OUTPUT"+ echo "n=$N" >> "$GITHUB_OUTPUT"+ exit 0+ fiTAG="$GITHUB_REF_NAME"N="${TAG##*-alpha.}"if ! [[ "$N" =~ ^[1-9][0-9]*$ ]]; then@@ -37,7 +48,6 @@ jobs:exit 1fiV="${TAG#v}"; V="${V%-alpha.*}"- NAME=$(sed -nE 's/^ *versionName = "([^"]+)".*/\1/p' app/build.gradle.kts)if [ "$V" != "$NAME" ]; thenecho "::error::$TAG is version $V, but versionName in app/build.gradle.kts is $NAME; tag v$NAME-alpha.<number> instead"exit 1@@ -47,6 +57,7 @@ jobs:echo "::error::$TAG is not on dev; alpha tags go on dev commits only"exit 1fi+ echo "tag=$TAG" >> "$GITHUB_OUTPUT"echo "n=$N" >> "$GITHUB_OUTPUT"# JDK 25: Kadb ships Java 25 bytecode.@@ -77,8 +88,12 @@ jobs:- name: Alpha pre-releaseenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- TAG: ${{ github.ref_name }}+ TAG: ${{ steps.tag.outputs.tag }}run: |+ if [ "$GITHUB_REF_TYPE" = branch ]; then+ git tag "$TAG" "$GITHUB_SHA"+ git push origin "$TAG"+ fiAPK="Tellyscope-$TAG.apk"cp app/build/outputs/apk/release/app-release.apk "$APK"PREV=$(git tag -l 'v[0-9]*.[0-9]*.[0-9]*' | sort -V | tail -n 1)diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex d32960d..4b5e536 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -13,7 +13,7 @@ Thanks for helping! Tellyscope is pre-alpha, so the code and its structure are s## Releases-- **Alpha:** merging into `dev` runs CI and publishes nothing. To put out an alpha, tag a commit that is on `dev` with `vX.Y.Z-alpha.N`, where `X.Y.Z` is the current `versionName`, and push the tag. For example, with `versionName` 0.0.1: `git tag v0.0.1-alpha.1 origin/dev && git push origin v0.0.1-alpha.1`. CI builds `app.tellyscope.alpha`, which installs next to the release, and publishes it as a GitHub pre-release under that tag, named `Tellyscope-vX.Y.Z-alpha.N.apk`. The tag's `X.Y.Z` must equal `versionName` in `app/build.gradle.kts`, and its commit must be on `dev`; otherwise the build fails and publishes nothing.+- **Alpha:** every merge into `dev` publishes an alpha. CI builds `app.tellyscope.alpha`, which installs next to the release, and once the build passes it tags the commit `vX.Y.Z-alpha.N` and publishes a GitHub pre-release under that tag, with the APK named `Tellyscope-vX.Y.Z-alpha.N.apk`. `X.Y.Z` is the current `versionName`, and `N` is one past the highest alpha of that version. A failed build tags nothing. You can still put out an alpha by hand: tag a commit that is on `dev` and push the tag, for example `git tag v0.0.1-alpha.1 origin/dev && git push origin v0.0.1-alpha.1`. The tag's `X.Y.Z` must equal `versionName` in `app/build.gradle.kts`, and its commit must be on `dev`; otherwise the build fails and publishes nothing.- **Shipping:** a release is a pull request from `dev` into `main`, merged with a merge commit. It must raise `versionName` and `versionCode` in `app/build.gradle.kts` past the latest `v*` tag and add that version's section to [CHANGELOG.md](CHANGELOG.md); CI refuses anything else. Merging it tags `vX.Y.Z` and publishes a GitHub release with the signed APK, notes from the changelog section and the commits since the previous tag.- **Signing:** CI signs both builds from three repository secrets: `RELEASE_KEYSTORE_BASE64` (the keystore, base64-encoded), `RELEASE_KEY_ALIAS` and `RELEASE_KEY_PASSWORD`, which is both the store and the key password (keytool's PKCS12 default uses one for both). Only the maintainer holds the key; never commit a keystore. Local release builds are unsigned.