From 2e8eadbe2943ec5e13d44d5b8333c8718b687026 Mon Sep 17 00:00:00 2001 From: GitHub Date: Fri, 24 Jan 2025 11:33:57 +1100 Subject: [PATCH] turn on deploy --- deploy.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/deploy.sh b/deploy.sh index 2e46658..9dab5a9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -67,13 +67,13 @@ ls -al echo "Zipping dist/..." zip -q -r "${ACTION}.zip" "${ACTION}.js" utils.js config.json package.json node_modules popd -# echo "Deploying ${ACTION_NAME}..." -# if [ -e ~/.wskprops ] -# then -# $WSK action update "${ACTION_NAME}" --kind nodejs:18 "dist/${ACTION}.zip" --web true -# else -# echo "Setting runtime host and auth properties..." -# $WSK property set --apihost adobeioruntime.net --auth "${ADOBE_RUNTIME_AUTH}" -# $WSK action update "${ACTION_NAME}" --kind nodejs:18 "dist/${ACTION}.zip" --web true --apihost adobeioruntime.net --auth "${ADOBE_RUNTIME_AUTH}" -# fi +echo "Deploying ${ACTION_NAME}..." +if [ -e ~/.wskprops ] +then + $WSK action update "${ACTION_NAME}" --kind nodejs:18 "dist/${ACTION}.zip" --web true +else + echo "Setting runtime host and auth properties..." + $WSK property set --apihost adobeioruntime.net --auth "${ADOBE_RUNTIME_AUTH}" + $WSK action update "${ACTION_NAME}" --kind nodejs:18 "dist/${ACTION}.zip" --web true --apihost adobeioruntime.net --auth "${ADOBE_RUNTIME_AUTH}" +fi echo "🌈✅"