2021-11-13 02:55:54 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
|
2021-12-08 01:42:42 +00:00
|
|
|
RELEASE_DIR="target/github_release"
|
|
|
|
|
|
|
|
mkdir "${RELEASE_DIR}"
|
|
|
|
|
|
|
|
ln -s "../plantuml.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar"
|
|
|
|
ln -s "../plantuml-javadoc.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar"
|
|
|
|
ln -s "../plantuml-sources.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar"
|
|
|
|
# we do not release the .pom or .asc signature files here, they will be added in a later PR
|
|
|
|
|
|
|
|
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} 🎉"
|