Skip to content

Commit 6d9ea4a

Browse files
committed
Remove aliases and add NIGHTLYBUILD=yes to publish script
1 parent b7d1034 commit 6d9ea4a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

project/scripts/sbtPublish

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,20 @@ if [ $SHOULD_RUN = false ]; then
1414
exit 0
1515
fi
1616

17-
if [ -z "$SONATYPE_USER" -o -z "$SONATYPE_PW" -o -z "$PGP_PW" ]; then
17+
if [ -z "$2" -o -z "$3" -o -z "$4" ]; then
1818
echo "invalid args: this script takes 4 args, usage:"
1919
echo ""
2020
echo " ./project/scripts/sbt SHOULD_RUN SONATYPE_USER SONATYPE_PW PGP_PW"
2121
exit 1
2222
fi
2323

24-
CMD=' ;set credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", "'"$SONATYPE_USER"'", "'"$SONATYPE_PW"'")'
25-
CMD="$CMD ;set pgpPassphrase := Some(\"\"\"$PGP_PW\"\"\".toCharArray)"
24+
CMD=' ;set credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", "'"$2"'", "'"$3"'")'
25+
CMD="$CMD ;set pgpPassphrase := Some(\"\"\"$4\"\"\".toCharArray)"
2626
CMD="$CMD ;set pgpSecretRing := file(\"/keys/secring.asc\")"
2727
CMD="$CMD ;set pgpPublicRing := file(\"/keys/pubring.asc\")"
2828
CMD="$CMD ;dotty-bootstrapped/publishSigned ;sonatypeRelease"
2929

30-
echo "Will run sbt with command: \"$CMD\""
31-
30+
export NIGHTLYBUILD="yes"
3231
sbt -J-Xmx4096m \
3332
-J-XX:ReservedCodeCacheSize=512m \
3433
-J-XX:MaxMetaspaceSize=1024m \

0 commit comments

Comments
 (0)