Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Updates publish script to publish locally

AuthorDaveJarvis <email>
Date2023-10-02 14:07:45 GMT-0700
Commit5dc9b204fbcadbd218c51f5104691b33575fd433
Parent4d7e025
Delta2 lines added, 1 line removed, 1-line increase
publish.sh
readonly APP_NAME=$(cut -d= -f2 ./src/main/resources/bootstrap.properties)
readonly PATH_TOKEN="tokens/${APP_NAME,,}.pat"
+readonly URL=$(cat tokens/publish.url)
# ---------------------------------------------------------------------------
if [ -f "${PATH_ARCHIVE}" ]; then
- glab release upload ${RELEASE} "${PATH_ARCHIVE}"
+ scp "${PATH_ARCHIVE}" "${URL}"
else
echo "Missing ${PATH_ARCHIVE}, continuing."