diff --git a/gp/publish.sh b/gp/publish.sh index 9333942..661730a 100755 --- a/gp/publish.sh +++ b/gp/publish.sh @@ -9,3 +9,12 @@ SOS_DIR="${SCRIPT_DIR}/../sos" # run sos to upload sos "${SOS_DIR}/sos" upload "getbin.xyz" "${SCRIPT_DIR}/${PROJECT}" "${PROJECT}:latest" + +# publish the tool +GETPKG="${SCRIPT_DIR}/../getpkg/output/getpkg" +[ -f "${GETPKG}" ] || die "Failed to find getpkg" +TOOLDIR="${SCRIPT_DIR}/tool" +mkdir -p "${TOOLDIR}" +cp "${SCRIPT_DIR}/${PROJECT}" "${TOOLDIR}/${PROJECT}" +"${GETPKG}" publish "${PROJECT}" "${TOOLDIR}" +rm -rf "${TOOLDIR}"