#!/bin/bash
set -eu
: ${2:? Usage: $0 DESCRIPTION VERSION}
DESCRIPTION="$1"
VERSION="$2"
set -x

mvn nexus-staging:deploy-staged-repository \
    --errors \
    -DrepositoryDirectory=staging \
    -DstagingDescription="$DESCRIPTION"

# assumes 'staging/*.properties' under altStagingDirectory
mvn nexus-staging:release \
    --errors \
    -DaltStagingDirectory=. \
    -DstagingDescription="$DESCRIPTION"

git push origin HEAD
git push origin --tags

cd ../retrolambda.pages
./update-maven-site.sh "$VERSION"
git push

#!/bin/bash
set -eu
: ${2:? Usage: $0 DESCRIPTION VERSION}
DESCRIPTION="$1"
VERSION="$2"
set -x

mvn nexus-staging:deploy-staged-repository \
    --errors \
    -DrepositoryDirectory=staging \
    -DstagingDescription="$DESCRIPTION"

# assumes 'staging/*.properties' under altStagingDirectory
mvn nexus-staging:release \
    --errors \
    -DaltStagingDirectory=. \
    -DstagingDescription="$DESCRIPTION"

git push origin HEAD
git push origin --tags

cd ../retrolambda-site
./update-maven-site.sh "$VERSION"
git push

Rename the site's directory to avoid macOS thinking it's a Pages document
Rename the site's directory to avoid macOS thinking it's a Pages document
