-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhowto-release.txt
More file actions
88 lines (59 loc) · 1.96 KB
/
howto-release.txt
File metadata and controls
88 lines (59 loc) · 1.96 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
# HOW TO RELEASE A NEW ONEXUS VERSION STEP BY STEP
#
# Be sure to be on 'develop' branch
git checkout develop
# Pull and push all commits
git pull
git push
# Start a new release
git flow release start onexus-0.4.0
# Update pom.xml version
# Check that you are going to update only the correct versions:
find . -name pom.xml | awk '{ system("sed 0,/0.4.0-SNAPSHOT/s//0.4.0/ "$0)}' | grep -A2 -B3 0.4.0
# Update all like this:
find . -name pom.xml | awk '{ system("sed -i 0,/0.4.0-SNAPSHOT/s//0.4.0/ "$0)}'
# Check other possible manual updates
grep -r 0.4.0-SNAPSHOT . | grep -v target | grep -v classes | grep -v .idea | grep -v .site
# Compile and package
mvn clean install
# Test the version
karaf@root> features:addurl mvn:org.onexus/onexus-features/0.4.0/xml/features
karaf@root> features:install -v onexus-mysql
# Release site
mvn site-deploy
cd site
nano index.html
git add .
git commit -a -m "Release site version 0.4.0"
git push
cd ..
# Commit the changes
git commit -a -m "Release version 0.4.0"
# Update the site documentation
mvn site
mvn site:deploy
# Edit site main index and add a new link to the new version
nano site/index.html
# Update github pages
site# git add 0.4.0
site# git commit -a -m "Release 0.4.0"
site# git push origin gh-pages
# Finish the release
git flow release finish onexus-0.4.0
# Check that you are on develop branch
git branch
# Update pom.xml versions to new SNAPSHOT version
# Check that you are going to update only the correct versions:
find . -name pom.xml | awk '{ system("sed 0,/0.4.0/s//0.5.0-SNAPSHOT/ "$0)}' | grep -A2 -B3 0.5.0-SNAPSHOT
# Update all like this:
find . -name pom.xml | awk '{ system("sed -i 0,/0.4.0/s//0.5.0-SNAPSHOT/ "$0)}'
# Check other possible updates
grep -r 0.4.0 . | grep -v target | grep -v classes | grep -v .idea | grep -v repository | grep -v .git | grep -v .site
# Test it
mvn clean install
# Commit
git commit -a -m "Next iteration version 0.5.0-SNAPSHOT"
# Push develop
git push --all
git push --tags