Skip to content

Commit 4d20b7e

Browse files
authored
Update release script to release site (docs, javadocs) (helidon-io#1533)
* Update release.sh to handle release of new docs/javadocs * No longer need to override javadoc-plugin version
1 parent 2dc1d39 commit 4d20b7e

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

etc/scripts/release.sh

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,35 @@ update_version(){
199199
fi
200200
}
201201

202+
release_site(){
203+
if [ -n "${STAGING_REPO_ID}" ] ; then
204+
readonly MAVEN_REPO_URL="https://oss.sonatype.org/service/local/staging/deployByRepositoryId/${STAGING_REPO_ID}/"
205+
else
206+
readonly MAVEN_REPO_URL="https://oss.sonatype.org/service/local/staging/deploy/maven2/"
207+
fi
208+
209+
# Generate site
210+
mvn -B site
211+
212+
# Sign site jar
213+
gpg --pinentry-mode loopback --passphrase "${GPG_PASSPHRASE}" -ab ${WS_DIR}/target/helidon-project-${FULL_VERSION}-site.jar
214+
215+
# Deploy site.jar and signature file explicitly using deploy-file
216+
mvn -B deploy:deploy-file \
217+
-Dfile=${WS_DIR}/target/helidon-project-${FULL_VERSION}-site.jar \
218+
-Dfiles=${WS_DIR}/target/helidon-project-${FULL_VERSION}-site.jar.asc \
219+
-Dclassifier=site \
220+
-Dclassifiers=site \
221+
-Dtypes=jar.asc \
222+
-DgeneratePom=false \
223+
-DgroupId=io.helidon \
224+
-DartifactId=helidon-project \
225+
-Dversion=${FULL_VERSION} \
226+
-Durl=${MAVEN_REPO_URL} \
227+
-DrepositoryId=ossrh \
228+
-DretryFailedDeploymentCount=10
229+
}
230+
202231
release_build(){
203232
# Inject credentials in CI env
204233
inject_credentials
@@ -236,7 +265,6 @@ release_build(){
236265
echo "Nexus staging repository ID: ${STAGING_REPO_ID}"
237266

238267
# Perform deployment
239-
# TODO add site site-deploy
240268
mvn -B clean deploy -Prelease,archetypes -DskipTests \
241269
-Dgpg.passphrase="${GPG_PASSPHRASE}" \
242270
-DstagingRepositoryId=${STAGING_REPO_ID} \
@@ -249,6 +277,9 @@ release_build(){
249277
done
250278
fi
251279

280+
# Release site (documentation, javadocs)
281+
release_site
282+
252283
# Close the nexus staging repository
253284
mvn nexus-staging:rc-close \
254285
-DstagingRepositoryId=${STAGING_REPO_ID} \

0 commit comments

Comments
 (0)