Update publish.sh
Some checks failed
Test and Publish Templates / test-and-publish (push) Failing after 6s

This commit is contained in:
Your Name
2025-08-24 20:56:01 +12:00
parent bedc68373d
commit 2e7aec1134

View File

@@ -119,17 +119,17 @@ for TEMPLATE in $TEMPLATES_TO_PUBLISH; do
info "Uploading $TEMPLATE to templates.dropshell.app"
# Always upload with :latest tag
sos templates.dropshell.app "$TARBALL" "${TEMPLATE}:latest" || die "Failed to upload $TEMPLATE:latest"
sos upload templates.dropshell.app "$TARBALL" "${TEMPLATE}:latest" || die "Failed to upload $TEMPLATE:latest"
info "Uploaded ${TEMPLATE}:latest"
# Also upload with specific version tag
sos templates.dropshell.app "$TARBALL" "${TEMPLATE}:${VERSION}" || die "Failed to upload $TEMPLATE:${VERSION}"
sos upload templates.dropshell.app "$TARBALL" "${TEMPLATE}:${VERSION}" || die "Failed to upload $TEMPLATE:${VERSION}"
info "Uploaded ${TEMPLATE}:${VERSION}"
# If we have a major version, also tag with major version only (e.g., v1)
MAJOR_VERSION=$(echo "$VERSION" | cut -d. -f1)
if [ -n "$MAJOR_VERSION" ]; then
sos templates.dropshell.app "$TARBALL" "${TEMPLATE}:v${MAJOR_VERSION}" || die "Failed to upload $TEMPLATE:v${MAJOR_VERSION}"
sos upload templates.dropshell.app "$TARBALL" "${TEMPLATE}:v${MAJOR_VERSION}" || die "Failed to upload $TEMPLATE:v${MAJOR_VERSION}"
info "Uploaded ${TEMPLATE}:v${MAJOR_VERSION}"
fi