forked from pallet/pallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinish-release.sh
More file actions
32 lines (24 loc) · 792 Bytes
/
Copy pathfinish-release.sh
File metadata and controls
32 lines (24 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# finish the release after updating release notes
if [[ $# -lt 1 ]]; then
echo "usage: $(basename $0) new-version" >&2
exit 1
fi
version=$1
echo "finish release of $version"
echo -n "Commiting readme and release notes. Enter to continue:" && read x \
&& git add -u README.md ReleaseNotes.md \
&& git commit -m "Update readme and release notes for $version" \
&& echo -n "Peform release. Enter to continue:" && read x \
&& mvn release:clean \
&& mvn release:prepare \
&& mvn release:perform \
&& git flow release finish -n $version \
&& mvn nexus:staging-close \
&& mvn nexus:staging-promote
mvn site
echo "=========================="
echo "Now update lein-pallet-new"
echo " pallet-examples"
echo " website"
echo " push to gh-pages"