diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index dd16e938..1ed8a998 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -569,13 +569,18 @@ jobs: link() { if [ -e "dist/$2" ]; then printf '[%s](%s/%s)' "$1" "$URL" "$2"; fi; } cell() { local out="" x; for x in "$@"; do [ -z "$x" ] || out="${out:+$out · }$x"; done; printf '%s' "$out"; } V="$VERSION" - ARM64="| **ARM64** (Apple silicon) | $(cell "$(link DMG "tty7-$V-macos-arm64.dmg")" "$(link ZIP "tty7-$V-macos-arm64.zip")") | | | $(cell "$(link Linux tty7-server-linux-aarch64-musl)" "$(link macOS tty7-server-macos-aarch64)" "$(link Windows tty7-server-windows-aarch64.exe)") |" - X64="| **x86-64** (Intel / AMD) | $(cell "$(link DMG "tty7-$V-macos-x86_64.dmg")" "$(link ZIP "tty7-$V-macos-x86_64.zip")") | $(cell "$(link Installer "tty7-$V-windows-x86_64-setup.exe")" "$(link "Portable ZIP" "tty7-$V-windows-x86_64.zip")") | $(cell "$(link AppImage "tty7-$V-linux-x86_64.AppImage")" "$(link tar.gz "tty7-$V-linux-x86_64.tar.gz")") | $(cell "$(link Linux tty7-server-linux-x86_64-musl)" "$(link macOS tty7-server-macos-x86_64)" "$(link Windows tty7-server-windows-x86_64.exe)") |" + # The phone app ships on its own tags; link the newest published one. + MOBILE_TAG=$(gh release list --repo "$GITHUB_REPOSITORY" --limit 100 --exclude-drafts \ + --json tagName -q '[.[].tagName | select(startswith("mobile-v"))][0] // ""') + PHONE=$(cell "[iPhone (TestFlight)](https://testflight.apple.com/join/gFcPbPVR)" \ + "${MOBILE_TAG:+[Android APK](https://github.com/${GITHUB_REPOSITORY}/releases/download/$MOBILE_TAG/tty7-${MOBILE_TAG#mobile-v}-android-arm64.apk)}") + ARM64="| **ARM64** (Apple silicon) | $(cell "$(link DMG "tty7-$V-macos-arm64.dmg")" "$(link ZIP "tty7-$V-macos-arm64.zip")") | | | $(cell "$(link Linux tty7-server-linux-aarch64-musl)" "$(link macOS tty7-server-macos-aarch64)" "$(link Windows tty7-server-windows-aarch64.exe)") | $PHONE |" + X64="| **x86-64** (Intel / AMD) | $(cell "$(link DMG "tty7-$V-macos-x86_64.dmg")" "$(link ZIP "tty7-$V-macos-x86_64.zip")") | $(cell "$(link Installer "tty7-$V-windows-x86_64-setup.exe")" "$(link "Portable ZIP" "tty7-$V-windows-x86_64.zip")") | $(cell "$(link AppImage "tty7-$V-linux-x86_64.AppImage")" "$(link tar.gz "tty7-$V-linux-x86_64.tar.gz")") | $(cell "$(link Linux tty7-server-linux-x86_64-musl)" "$(link macOS tty7-server-macos-x86_64)" "$(link Windows tty7-server-windows-x86_64.exe)") | |" NOTES="Automated nightly build of \`main\` @ ${GITHUB_SHA::7} ($(date -u +%F)). Rolling prerelease — assets are replaced every night; for the latest stable release see https://github.com/${GITHUB_REPOSITORY}/releases/latest. - | Architecture | macOS | Windows | Linux | tty7-server (remote host) | - |---|---|---|---|---| + | Architecture | macOS | Windows | Linux | tty7-server (remote host) | Phone | + |---|---|---|---|---|---| $ARM64 $X64