From a08af697e4b4dfc0c54bcd8c5b5d4dc677f3f5ba Mon Sep 17 00:00:00 2001 From: soloturn Date: Fri, 11 Feb 2022 16:47:05 +0100 Subject: [PATCH] gradle release, gh publish signatures. --- .github/scripts/release-gradle.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/scripts/release-gradle.sh b/.github/scripts/release-gradle.sh index 03c69d6b5..7bd9bc88b 100755 --- a/.github/scripts/release-gradle.sh +++ b/.github/scripts/release-gradle.sh @@ -1,14 +1,20 @@ #!/usr/bin/env bash set -ex -RELEASE_DIR="build/libs/github_release" +RELEASE_DIR="build/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 + +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 + ln -s "../libs/plantuml.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}.jar.asc" + ln -s "../libs/plantuml-javadoc.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-javadoc.jar.asc" + ln -s "../libs/plantuml-sources.jar.asc" "${RELEASE_DIR}/plantuml-${POM_VERSION}-sources.jar.asc" +fi gh release create \ --target "${GITHUB_SHA}" \