mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-11 08:10:56 +00:00
19d7fba544
* Add MIT version on CI * chore: add gradle project for plantuml-mit * chore: add publish to gradle project plantuml-mit * chore: suppress test on u20 win19, add MIT on release script Suppress ubuntu20 and win2019 test Test of symbolic link on release script for MIT license Delete now not used files: - ci-mit.yml - license-mit.yml - build-mit.gradle.kts * fix: side effect of MIT on Native CI * fix(build): update paths to mit jars --------- Co-authored-by: Eric Vantillard <eric.vantillard@evaxion.fr>
34 lines
2.2 KiB
Bash
Executable File
34 lines
2.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -ex
|
|
|
|
RELEASE_DIR="build/github_release"
|
|
|
|
mkdir "${RELEASE_DIR}"
|
|
|
|
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}"
|
|
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"
|
|
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"
|
|
|
|
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-${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"
|
|
fi
|
|
|
|
gh release create \
|
|
--target "${GITHUB_SHA}" \
|
|
--title "${TAG}" \
|
|
"${TAG}" ${RELEASE_DIR}/*
|
|
|
|
echo "::notice title=::Released at ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TAG} 🎉"
|