Skip to content

Commit

Permalink
Extract sbt props in client mode (#2101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ennru authored Apr 18, 2024
1 parent 07d4110 commit f084c7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/publish-maven.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env bash

echo "Extracting the SDK version from sbt build"
SDK_VERSION=$(sbt --client --no-colors "print coreSdk/version" | tail -n 1 | tr -d '\n')
IS_SNAPSHOT=$(sbt --client --no-colors "print coreSdk/isSnapshot" | tail -n 1 | tr -d '\n')
SDK_VERSION=$(sbt --client --no-colors "print coreSdk/version" | tail -n 3 | head -n 1 | tr -d '\n')
IS_SNAPSHOT=$(sbt --client --no-colors "print coreSdk/isSnapshot" | tail -n 3 | head -n 1 | tr -d '\n')
if [ "false" == "${IS_SNAPSHOT}" ]
then
REPO="akka-repo::default::https://maven.cloudsmith.io/lightbend/akka/"
else
REPO="akka-repo::default::https://maven.cloudsmith.io/lightbend/akka-snapshots/"
fi
echo "Publishing ${SDK_VERSION} to ${REPO}"
echo "Publishing '${SDK_VERSION}' to '${REPO}'"

cd maven-java
echo ${PGP_SECRET} | base64 -d | gpg --import --batch
Expand Down

0 comments on commit f084c7e

Please sign in to comment.