diff --git a/README.md b/README.md index ba8b3b24..30e95e68 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Unofficial Android app for read-only access to [lobste.rs](https://lobste.rs), b height="80" /> -Snapshots from the development branch can be obtained [here](https://github.com/msfjarvis/compose-lobsters/releases/latest). +Snapshots from the development branch can be obtained [here](https://github.com/msfjarvis/compose-lobsters/releases/tag/nightly). ## License diff --git a/scripts/deploy-snapshot.sh b/scripts/deploy-snapshot.sh index 3ff65914..0e60099c 100755 --- a/scripts/deploy-snapshot.sh +++ b/scripts/deploy-snapshot.sh @@ -2,25 +2,25 @@ set -euxo pipefail -LATEST_TAG="latest" +NIGHTLY_TAG="nightly" CURRENT_REV="$(git rev-parse --short HEAD)" ASSET_DIRECTORY="${GITHUB_WORKSPACE:?}/android/outputs" function overwrite_local_tag() { - git tag -f "${LATEST_TAG}" + git tag -f "${NIGHTLY_TAG}" } function overwrite_remote_tag() { - git push -f origin "${LATEST_TAG}" + git push -f origin "${NIGHTLY_TAG}" } function has_release() { - gh release view "${LATEST_TAG}" &>/dev/null + gh release view "${NIGHTLY_TAG}" &>/dev/null echo "$?" } function delete_release() { - gh release delete --yes "${LATEST_TAG}" + gh release delete --yes "${NIGHTLY_TAG}" } function create_release() { @@ -28,7 +28,7 @@ function create_release() { CHANGELOG_FILE="$(mktemp)" echo "Latest release for Claw from revision ${CURRENT_REV}" | tee "${CHANGELOG_FILE}" pushd "${ASSET_DIRECTORY}" || return - gh release create --prerelease --title "Latest snapshot build" --notes-file "${CHANGELOG_FILE}" "${LATEST_TAG}" ./* + gh release create --prerelease --title "Latest snapshot build" --notes-file "${CHANGELOG_FILE}" "${NIGHTLY_TAG}" ./* popd || return }