From 30af20fcab2fbac90e7b644e5a2d7545a720cbc4 Mon Sep 17 00:00:00 2001 From: Alain Bodiguel Date: Tue, 5 Nov 2019 16:45:33 +0100 Subject: [PATCH] [Server] Generate API documentation (fix #542) --- release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release.sh b/release.sh index f3c0d3fed..097e35a3f 100755 --- a/release.sh +++ b/release.sh @@ -171,6 +171,9 @@ mkdir -p openapi cp target/tmp/swagger.yaml openapi cp target/tmp/swagger.json openapi +echo "=> Generate API documentation" +mvn "-Dswagger.output=docs/api" swagger2markup:convertSwagger2markup + echo "=> Stop arlas-server stack" docker-compose -f docker-compose.yml -f docker-compose-elasticsearch.yml --project-name arlas down -v @@ -290,6 +293,7 @@ if [ "$SIMULATE" == "NO" ]; then echo "=> Commit release version" git add openapi/swagger.json git add openapi/swagger.yaml + git add docs/api git commit -a -m "release version ${ARLAS_VERSION}" git tag v${ARLAS_VERSION} git push origin v${ARLAS_VERSION}