2021-11-13 02:55:54 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
|
2022-03-11 05:42:52 +00:00
|
|
|
RELEASE_DIR="build/github_release"
|
2021-12-08 01:42:42 +00:00
|
|
|
|
|
|
|
mkdir "${RELEASE_DIR}"
|
|
|
|
|
2023-03-25 13:45:43 +00:00
|
|
|
ln -s "../libs/plantuml-${RELEASE_VERSION}.jar" "${RELEASE_DIR}/plantuml.jar"
|
|
|
|
ln -s "../libs/plantuml-${RELEASE_VERSION}.jar" "${RELEASE_DIR}/plantuml-${RELEASE_VERSION}.jar"
|
|
|
|
ln -s "../libs/plantuml-${RELEASE_VERSION}-javadoc.jar" "${RELEASE_DIR}/plantuml-${RELEASE_VERSION}-javadoc.jar"
|
|
|
|
ln -s "../libs/plantuml-${RELEASE_VERSION}-sources.jar" "${RELEASE_DIR}/plantuml-${RELEASE_VERSION}-sources.jar"
|
|
|
|
ln -s "../libs/plantuml-pdf-${RELEASE_VERSION}.jar" "${RELEASE_DIR}/plantuml-pdf-${RELEASE_VERSION}.jar"
|
|
|
|
ln -s "../libs/plantuml-linux-amd64-${RELEASE_VERSION}" "${RELEASE_DIR}/plantuml-linux-amd64-${RELEASE_VERSION}"
|
2023-03-26 10:25:25 +00:00
|
|
|
ln -s "../libs/plantuml-darwin-amd64-${RELEASE_VERSION}" "${RELEASE_DIR}/plantuml-darwin-amd64-${RELEASE_VERSION}"
|
|
|
|
ln -s "../libs/plantuml-win-amd64-${RELEASE_VERSION}.exe" "${RELEASE_DIR}/plantuml-win-amd64-${RELEASE_VERSION}.exe"
|
2023-04-18 17:13:44 +00:00
|
|
|
#ln -s "../plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}.jar" "${RELEASE_DIR}/plantuml-mit-${RELEASE_VERSION}.jar"
|
|
|
|
#ln -s "../plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-sources.jar" "${RELEASE_DIR}/plantuml-mit-${RELEASE_VERSION}-sources.jar"
|
2022-03-11 05:42:52 +00:00
|
|
|
|
|
|
|
if [[ -e "build/publications/maven/module.json.asc" ]]; then
|
|
|
|
# signatures are optional so that forked repos can release snapshots without needing a gpg signing key
|
2023-03-25 13:45:43 +00:00
|
|
|
ln -s "../libs/plantuml-${RELEASE_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml.jar.asc"
|
|
|
|
ln -s "../libs/plantuml-${RELEASE_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-${RELEASE_VERSION}.jar.asc"
|
|
|
|
ln -s "../libs/plantuml-${RELEASE_VERSION}-javadoc.jar.asc" "${RELEASE_DIR}/plantuml-${RELEASE_VERSION}-javadoc.jar.asc"
|
|
|
|
ln -s "../libs/plantuml-${RELEASE_VERSION}-sources.jar.asc" "${RELEASE_DIR}/plantuml-${RELEASE_VERSION}-sources.jar.asc"
|
|
|
|
ln -s "../libs/plantuml-pdf-${RELEASE_VERSION}.jar.asc" "${RELEASE_DIR}/plantuml-pdf-${RELEASE_VERSION}.jar.asc"
|
2022-03-11 05:42:52 +00:00
|
|
|
fi
|
2021-12-08 01:42:42 +00:00
|
|
|
|
|
|
|
gh release create \
|
|
|
|
--target "${GITHUB_SHA}" \
|
|
|
|
--title "${TAG}" \
|
|
|
|
"${TAG}" ${RELEASE_DIR}/*
|
2021-11-13 02:55:54 +00:00
|
|
|
|
|
|
|
echo "::notice title=::Released at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TAG} 🎉"
|