2021-11-13 02:55:54 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
|
2023-05-12 14:50:31 +00:00
|
|
|
find . -name "*.jar"
|
|
|
|
find . -name "*.asc"
|
2021-12-08 01:42:42 +00:00
|
|
|
|
2023-05-12 14:50:31 +00:00
|
|
|
mkdir "github_release"
|
2021-12-08 01:42:42 +00:00
|
|
|
|
2023-05-12 14:50:31 +00:00
|
|
|
cp "build/libs/plantuml-${RELEASE_VERSION}.jar" "github_release/plantuml.jar"
|
|
|
|
cp "build/libs/plantuml-${RELEASE_VERSION}.jar" "github_release/plantuml-${RELEASE_VERSION}.jar"
|
|
|
|
cp "build/libs/plantuml-${RELEASE_VERSION}-javadoc.jar" "github_release/plantuml-${RELEASE_VERSION}-javadoc.jar"
|
|
|
|
cp "build/libs/plantuml-${RELEASE_VERSION}-sources.jar" "github_release/plantuml-${RELEASE_VERSION}-sources.jar"
|
|
|
|
cp "build/libs/plantuml-pdf-${RELEASE_VERSION}.jar" "github_release/plantuml-pdf-${RELEASE_VERSION}.jar"
|
|
|
|
#cp "build/libs/plantuml-linux-amd64-${RELEASE_VERSION}" "github_release/plantuml-linux-amd64-${RELEASE_VERSION}"
|
|
|
|
#cp "build/libs/plantuml-darwin-amd64-${RELEASE_VERSION}" "github_release/plantuml-darwin-amd64-${RELEASE_VERSION}"
|
|
|
|
#cp "build/libs/plantuml-win-amd64-${RELEASE_VERSION}.exe" "github_release/plantuml-win-amd64-${RELEASE_VERSION}.exe"
|
|
|
|
cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}.jar" "github_release/plantuml-mit-${RELEASE_VERSION}.jar"
|
|
|
|
cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-sources.jar" "github_release/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-05-12 14:50:31 +00:00
|
|
|
cp "build/libs/plantuml-${RELEASE_VERSION}.jar.asc" "github_release/plantuml.jar.asc"
|
|
|
|
cp "build/libs/plantuml-${RELEASE_VERSION}.jar.asc" "github_release/plantuml-${RELEASE_VERSION}.jar.asc"
|
|
|
|
cp "build/libs/plantuml-${RELEASE_VERSION}-javadoc.jar.asc" "github_release/plantuml-${RELEASE_VERSION}-javadoc.jar.asc"
|
|
|
|
cp "build/libs/plantuml-${RELEASE_VERSION}-sources.jar.asc" "github_release/plantuml-${RELEASE_VERSION}-sources.jar.asc"
|
|
|
|
cp "build/libs/plantuml-pdf-${RELEASE_VERSION}.jar.asc" "github_release/plantuml-pdf-${RELEASE_VERSION}.jar.asc"
|
|
|
|
cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}.jar.asc" "github_release/plantuml-mit-${RELEASE_VERSION}.jar.asc"
|
|
|
|
cp "plantuml-mit/build/libs/plantuml-mit-${RELEASE_VERSION}-sources.jar.asc" "github_release/plantuml-mit-${RELEASE_VERSION}-sources.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}" \
|
2023-05-12 14:50:31 +00:00
|
|
|
"${TAG}" github_release/*
|
2021-11-13 02:55:54 +00:00
|
|
|
|
|
|
|
echo "::notice title=::Released at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TAG} 🎉"
|