Publish paradox/japi/api (snapshot) docs via sbt (#28828)
* Publish paradox/japi/api (snapshot) docs via sbt * Removes the need for custom release commands * Use ++= instead of :=
This commit is contained in:
parent
60ec32439c
commit
1a529aa38a
7 changed files with 33 additions and 90 deletions
|
|
@ -89,7 +89,6 @@ declare -r default_server="akkarepo@gustav.akka.io"
|
|||
declare -r default_path="www"
|
||||
|
||||
# settings
|
||||
declare -r release_dir="target/release"
|
||||
declare release_server=${default_server}
|
||||
declare release_path=${default_path}
|
||||
|
||||
|
|
@ -279,14 +278,9 @@ else
|
|||
fi
|
||||
|
||||
# Release artifacts
|
||||
try sbt $RELEASE_OPT +buildRelease
|
||||
try sbt $RELEASE_OPT +publishSigned
|
||||
|
||||
echolog "Successfully created released artifacts"
|
||||
|
||||
# Build the docs
|
||||
try sbt $RELEASE_OPT buildDocs
|
||||
|
||||
echolog "Successfully created docs"
|
||||
echolog "Successfully released artifacts"
|
||||
|
||||
try sbt $RELEASE_OPT whitesourceCheckPolicies
|
||||
|
||||
|
|
@ -325,19 +319,14 @@ else
|
|||
important git push origin --tags
|
||||
fi
|
||||
|
||||
# push the docs to the server
|
||||
echolog "Pushing ${release_dir} docs to ${publish_path} ..."
|
||||
echolog "Building docs and pushing to the server..."
|
||||
if [ $dry_run ]; then
|
||||
echodry "Not actually pushing to server. Commands:"
|
||||
echodry " sbt $RELEASE_OPT deployRsync"
|
||||
echodry " rsync -rlpvz --chmod=Dg+ws,Fg+w --exclude ${release_dir}/downloads --exclude ${release_dir}/docs ${release_dir}/ ${publish_path}/"
|
||||
else
|
||||
important ssh ${release_server} "cd ${release_path}/docs/akka; git add .; git commit -m 'before publishing version $version'; true"
|
||||
# using Scala 2.13 here to avoid the infamous problem with missing AskSupport in classpath
|
||||
important sbt -Dakka.build.scalaVersion=2.13.0 $RELEASE_OPT "deployRsync ${release_server}"
|
||||
important rsync -rlpvz --chmod=Dg+ws,Fg+w --exclude downloads --exclude docs ${release_dir}/ ${publish_path}/
|
||||
#important ssh ${release_server} cp -v ${release_path}/docs/akka/${version}/_static/warnOldDocs.js ${release_path}/docs/akka
|
||||
#important ssh ${release_server} ln -snvf ../../warnOldDocs.js ${release_path}/docs/akka/${version}/_static/warnOldDocs.js
|
||||
important ssh ${release_server} "cd ${release_path}/docs/akka; git add .; git commit -m 'publish version $version'"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue