-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·23 lines (18 loc) · 910 Bytes
/
Copy pathdeploy.sh
File metadata and controls
executable file
·23 lines (18 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
set -eo pipefail
source environment.sh
if [[ -z "${MAVEN_CENTRAL_TOKEN_USERNAME}" ]]; then
# notify-pass is set up by our bash_profile/bashrc/etc files, so isnt available within this shell. have to do the
# hard work manually
echo 'Maven token username not set. Please run the following and then retry'
echo 'export MAVEN_CENTRAL_TOKEN_USERNAME=$(notify-pass show credentials/maven-central/token-username)'
exit 1
fi
if [[ -z "${MAVEN_CENTRAL_TOKEN_PASSWORD}" ]]; then
# notify-pass is set up by our bash_profile/bashrc/etc files, so isnt available within this shell. have to do the
# hard work manually
echo 'Maven token password not set. Please run the following and then retry'
echo 'export MAVEN_CENTRAL_TOKEN_PASSWORD=$(notify-pass show credentials/maven-central/token-password)'
exit 1
fi
mvn --settings=maven-settings.xml clean javadoc:jar source:jar deploy