mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 10:37:05 +05:30
chore(release): rename development tag to nightly
This commit is contained in:
parent
d1b74a71ad
commit
2623377027
2 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue