feat: Update 2 files
This commit is contained in:
17
publish.sh
17
publish.sh
@@ -40,20 +40,9 @@ trap 'rm -rf "${TEMP_DIR}"' EXIT
|
||||
curl -L -o "${SOS}" "https://getbin.xyz/sos"
|
||||
chmod +x "${SOS}"
|
||||
|
||||
# Create metadata file with version information
|
||||
METADATA_FILE="${TEMP_DIR}/metadata.json"
|
||||
cat > "${METADATA_FILE}" <<EOF
|
||||
{
|
||||
"version": "${VERSION}",
|
||||
"architecture": "${ARCH}",
|
||||
"project": "${PROJECT}"
|
||||
}
|
||||
EOF
|
||||
|
||||
# upload arch-specific binary with metadata
|
||||
# The sos tool should support --metadata flag or similar for version info
|
||||
"${SOS}" upload "getbin.xyz" "${SCRIPT_DIR}/output/${PROJECT}" "${PROJECT}:latest-${ARCH}" \
|
||||
--metadata "version=${VERSION}"
|
||||
# Upload arch-specific binary
|
||||
# sos will automatically run "dropshell version" and store it in metadata
|
||||
"${SOS}" upload "getbin.xyz" "${SCRIPT_DIR}/output/${PROJECT}" "${PROJECT}:latest-${ARCH}"
|
||||
|
||||
# Also upload with version-specific tag for direct version access
|
||||
"${SOS}" upload "getbin.xyz" "${SCRIPT_DIR}/output/${PROJECT}" "${PROJECT}:${VERSION}-${ARCH}"
|
||||
|
Reference in New Issue
Block a user