Skip to content

Commit

Permalink
Prepare for v3.0.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
scullxbones committed Jan 16, 2021
1 parent f4d45f7 commit 394a84e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 32 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ out/

# vscode metals
.metals/
.bloop/
.bloop/

.bsp/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
val releaseV = "3.0.5"
val releaseV = "3.0.6"

val scala212V = "2.12.11"
val scala213V = "2.13.2"
Expand Down
6 changes: 3 additions & 3 deletions docs/akka26.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
Expand Down Expand Up @@ -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.

Expand Down
33 changes: 7 additions & 26 deletions release_process_pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 <<SECTION
cat <<SECTION >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 >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

0 comments on commit 394a84e

Please sign in to comment.