Skip to content

Commit

Permalink
Post release cleanup (#103)
Browse files Browse the repository at this point in the history
* Set version to 0.15.0-SNAPSHOT

* Update publishing scripts
  • Loading branch information
sstone authored Feb 14, 2024
1 parent c582396 commit b2eb68b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ buildscript {

allprojects {
group = "fr.acinq.secp256k1"
version = "0.14.0"
version = "0.15.0-SNAPSHOT"

repositories {
google()
Expand Down
5 changes: 5 additions & 0 deletions publishing/secp256k1-kmp-add-darwinaarch64.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash -x

if [[ -z "${VERSION}" ]]; then
echo "VERSION is not defined"
exit 1
fi

if [ $# -eq 0 ]
then
echo "specify either snapshot or release"
Expand Down
5 changes: 5 additions & 0 deletions publishing/secp256k1-kmp-add-linuxarm64.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash -x

if [[ -z "${VERSION}" ]]; then
echo "VERSION is not defined"
exit 1
fi

if [ $# -eq 0 ]
then
echo "specify either snapshot or release"
Expand Down
19 changes: 16 additions & 3 deletions publishing/secp256k1-kmp-staging-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,22 @@
# first you must sign all files:
# find release -type f -print -exec gpg -ab {} \;

VERSION=0.6.2
if [[ -z "${VERSION}" ]]; then
echo "VERSION is not defined"
exit 1
fi

if [[ -z "${OSS_USER}" ]]; then
echo "OSS_USER is not defined"
exit 1
fi

read -p "Password : " -s OSS_PASSWORD


for i in secp256k1-kmp \
secp256k1-kmp-iosarm64 \
secp256k1-kmp-iossimulatorarm64 \
secp256k1-kmp-iosx64 \
secp256k1-kmp-jni-android \
secp256k1-kmp-jni-common \
Expand All @@ -15,14 +28,14 @@ for i in secp256k1-kmp \
secp256k1-kmp-jni-jvm-linux \
secp256k1-kmp-jni-jvm-mingw \
secp256k1-kmp-jvm \
secp256k1-kmp-linux
secp256k1-kmp-linuxx64
do
pushd .
cd release/fr/acinq/secp256k1/$i/$VERSION
pwd
jar -cvf bundle.jar *
# use correct sonatype credentials here
curl -v -XPOST -u USER:PASSWORD --upload-file bundle.jar https://oss.sonatype.org/service/local/staging/bundle_upload
curl -v -XPOST -u $OSS_USER:$OSS_PASSWORD --upload-file bundle.jar https://oss.sonatype.org/service/local/staging/bundle_upload
popd
done

0 comments on commit b2eb68b

Please sign in to comment.