Skip to content

Commit

Permalink
add promote-from-stage directive
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcc0nn3ll committed Jun 21, 2024
1 parent 0cf61f9 commit ebb6851
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jetty-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ function usage() {
echo " -u,--user-sudo: User to use for sudo copy"
echo " -d,--directive: directive to use"
echo " settings : print configured settings";
echo " stage : stage the latest version of the website for review";
echo " release : deploy the latest version of the website";
echo " stage : build and stage the latest version of the website for review";
echo " release : build and deploy the latest version of the website";
echo " promote-from-stage : copy stage files to release sans build"
echo " -h,--help: display help information"
echo "";

Expand Down Expand Up @@ -246,9 +247,9 @@ function main() {
exit 0;
fi

if [[ $directive == "compress" ]]; then
if [[ $directive == "promote-from-stage" ]]; then
check_environment;
compress_files "target/site/_";
copy_files $STAGE_DIR $RELEASE_DIR;
fi

# print usage
Expand Down

0 comments on commit ebb6851

Please sign in to comment.