From 394a84e1ae542cda6fc66e1324f16d2e25296810 Mon Sep 17 00:00:00 2001 From: Brian Scully Date: Sat, 16 Jan 2021 08:58:35 -0500 Subject: [PATCH] Prepare for v3.0.6 release --- .gitignore | 4 +++- README.md | 2 +- build.sbt | 2 +- docs/akka26.md | 6 +++--- release_process_pre.sh | 33 +++++++-------------------------- 5 files changed, 15 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index 9cb9cd4b..eb0247f5 100644 --- a/.gitignore +++ b/.gitignore @@ -52,4 +52,6 @@ out/ # vscode metals .metals/ -.bloop/ \ No newline at end of file +.bloop/ + +.bsp/ diff --git a/README.md b/README.md index bd66a338..e85e21c4 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ * Cross-compiled for 2.12 / 2.13 - Java 8 targeted * Active development -* Latest release - `3.0.5` ~ compatible with Akka 2.6 +* Latest release - `3.0.6` ~ compatible with Akka 2.6 ### Using Akka 2.5? Use 2.x Series. [![Build Status](https://travis-ci.org/scullxbones/akka-persistence-mongo.svg?branch=akka25)](https://travis-ci.org/scullxbones/akka-persistence-mongo) diff --git a/build.sbt b/build.sbt index 56a4aa39..286a17f1 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,4 @@ -val releaseV = "3.0.5" +val releaseV = "3.0.6" val scala212V = "2.12.11" val scala213V = "2.13.2" diff --git a/docs/akka26.md b/docs/akka26.md index 7105381b..d9c95ecd 100644 --- a/docs/akka26.md +++ b/docs/akka26.md @@ -19,12 +19,12 @@ (Official Scala) ```scala -libraryDependencies +="com.github.scullxbones" %% "akka-persistence-mongo-scala" % "3.0.5" +libraryDependencies +="com.github.scullxbones" %% "akka-persistence-mongo-scala" % "3.0.6" ``` (Reactive Mongo) ```scala -libraryDependencies +="com.github.scullxbones" %% "akka-persistence-mongo-rxmongo" % "3.0.5" +libraryDependencies +="com.github.scullxbones" %% "akka-persistence-mongo-rxmongo" % "3.0.6" ``` * Inside of your `application.conf` file, add the following line if you want to use the journal (snapshot is optional). The driver selection should be pulled in by a `reference.conf` in the driver jar you choose: ``` @@ -608,7 +608,7 @@ Of course, once this is done, you should **not** start your application, unless ###### Configuration Add the following to your `build.sbt` file: ```scala -libraryDependencies += "com.github.scullxbones" %% "akka-persistence-mongo-tools" % "3.0.5" +libraryDependencies += "com.github.scullxbones" %% "akka-persistence-mongo-tools" % "3.0.6" ``` Notice that even if you currently don't use it, migration process is performed through Official Scala driver. diff --git a/release_process_pre.sh b/release_process_pre.sh index be279a8e..73b0efae 100755 --- a/release_process_pre.sh +++ b/release_process_pre.sh @@ -5,10 +5,6 @@ die () { exit 1 } -if [ "$GH_TOKEN" == "" ]; then - die "Missing github oauth token" -fi - NEXT=$1 NEXT_WO_V=$(echo $1 | sed -Ee 's/^v([.0-9]+)$/\1/') PREVIOUS=$(git describe --abbrev=0 --tags) @@ -25,34 +21,19 @@ sed -i '' -e "s/$PREVIOUS_WO_V/$NEXT_WO_V/" README.md sed -i '' -e "s/$PREVIOUS_WO_V/$NEXT_WO_V/" docs/akka26.md sed -i '' -e "s/^val releaseV = \"$PREVIOUS_WO_V\"$/val releaseV = \"$NEXT_WO_V\"/" build.sbt -read -r -d '' BLOCK <
target/release.md + ### $NEXT_WO_V `git log $(git describe --tags --abbrev=0)..HEAD --oneline | cut -d' ' -f 2- | sed -e 's/^/* /' ` - SECTION -perl -ni -e "print; print \"\n$BLOCK\n\" if $. == 1" docs/changelog26.md +cp docs/changelog26.md previous.md +awk '//; /^## Changelog/{while(getline<"target/release.md"){print}}' previous.md +mv previous.md docs/changelog26.md git add . git commit -m 'Prepare for '$NEXT' release' -S git tag -a $NEXT -m "$BLOCK" -s -CR=$(printf '\r') -BLOCK_WITH_CR=$(echo -e "$BLOCK" | sed -e "s/\$/$CR/g") - -cat <api.json -{ - "tag_name": "$NEXT", - "target_commitish": "master", - "name": "$NEXT", - "draft": true, - "body": "$BLOCK" -} -API_JSON - -curl -v -H "Content-Type: application/json" -XPOST \ - -d @api.json \ - -H 'Authorization: token $GH_TOKEN' \ - https://api.github.com/repos/scullxbones/akka-persistence-mongo/releases - -rm api.json +gh release create $NEXT -F target/release.md -d -t $NEXT --target master +rm target/release.md