forked from heroku/webapp-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sh
executable file
·46 lines (38 loc) · 1.35 KB
/
release.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env bash
set -e
# Releasing to Maven Central can be confusing. So this will partially automate
# the process.
# http://central.sonatype.org/pages/apache-maven.html
# First, make sure you have your gpg key setup
# http://central.sonatype.org/pages/working-with-pgp-signatures.html
# Then make sure your ~/.m2/settings.xml has this stuff in it:
#
# <server>
# <id>ossrh</id>
# <username>youruser</username>
# <password>XXXXXXXXXX</password>
# </server>
# </servers>
#
# <profiles>
# <profile>
# <id>ossrh</id>
# <activation>
# <activeByDefault>true</activeByDefault>
# </activation>
# <properties>
# <gpg.executable>gpg</gpg.executable>
# <gpg.passphrase>XXXXXXXXXX</gpg.passphrase>
# </properties>
# </profile>
# </profiles>
# Now we can prepare for release (it's not really permantent, but there's no harm in overreacting at this point)
read -p "Are you sure you want to release? It's permanent! (press any key to continue)"
mvn release:clean release:prepare
# Now we can actually release (it's slightly more permantent now)
read -p "Are you still sure you want to release? It's permanent! (press any key to continue)"
mvn release:perform
echo "Now make sure you update these articles and projects:
https://devcenter.heroku.com/articles/java-webapp-runner
https://github.com/heroku/devcenter-webapp-runner
"