1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-29 13:22:43 +00:00
plantuml/.github/scripts/release-gradle.sh

19 lines
663 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -ex
RELEASE_DIR="build/libs/github_release"
mkdir "${RELEASE_DIR}"
ln -s "../libs/plantuml.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar"
ln -s "../libs/plantuml-javadoc.jar" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar"
ln -s "../libs/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}/*
echo "::notice title=::Released at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TAG} 🎉"