Skip to content

Commit

Permalink
add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
thewisenerd committed May 16, 2021
1 parent 3f3ac9e commit 6f0dccf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.iml
.idea/
target/
.DS_Store
release/
18 changes: 18 additions & 0 deletions bin/make-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -euo pipefail

COUNT=$(git rev-list --count HEAD)
HASH=$(git rev-parse --short=10 HEAD)

TAG="release/1.0-$COUNT-$HASH"
mvn -U clean package
mkdir -p release/
REL="sidekt-1.0-$COUNT-$HASH.jar"
cp "target/sidekt-1.0-SNAPSHOT.jar" "release/$REL"
md5sum "release/$REL" > "release/$REL.md5"
sha256sum "release/$REL" > "release/$REL.sha256"

# tag
git tag "$TAG"
echo "tagged release: $TAG"

0 comments on commit 6f0dccf

Please sign in to comment.