This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ReleaseProcess.txt
68 lines (53 loc) · 2.2 KB
/
ReleaseProcess.txt
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
Create a new branch for the release process.
If the current version is 2.2.1-SNAPSHOT, then it will be:
> git checkout -b prepare-V2.2.1
Update POM file revision numbers
> find . -name pom.xml | xargs sed -i -e 's/2.2.1-SNAPSHOT/2.2.1/g'
> find . -name archetype-metadata.xml | xargs sed -i -e 's/2.2.1-SNAPSHOT/2.2.1/g'
> find . -name archetype.properties | xargs sed -i -e 's/2.2.1-SNAPSHOT/2.2.1/g'
> git status
On branch prepare-V2.2.1
Changes not staged for commit:
modified: pom.xml
modified: sample/archetype/pom.xml
modified: sample/archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
modified: sample/archetype/src/test/resources/projects/basic/archetype.properties
modified: sample/pom.xml
modified: server/pom.xml
modified: util/pom.xml
Note: on some systems backup files (e.g. pom.xml-e) will be created. Please remove those files!
Build, test and deploy the artifacts:
> mvn clean install
> mvn deploy -DskipTests
(Note: Artifacts are deployed to https://artifacts.alfresco.com/nexus/content/repositories/releases/org/alfresco/)
Follow instructions in sample/building-the-archetype and return to base directory.
Check again for all changes made: git status
Commit all the changes:
> git add *
> git commit -m "Alfresco Benchmark V2.2.1"
> git push --all
Tag the branch in GitHub:
https://github.com/AlfrescoBenchmark - login
https://github.com/AlfrescoBenchmark/alfresco-benchmark/releases/new
Create new label and select branch as target
Set Release Title and describe your changes for the release
Publish release
Move onto the new version
> find . -name pom.xml | xargs sed -i -e 's/2.2.1/2.2.2-SNAPSHOT/g'
> find . -name archetype-metadata.xml | xargs sed -i -e 's/2.2.1/2.2.2-SNAPSHOT/g'
> find . -name archetype.properties | xargs sed -i -e 's/2.2.1/2.2.2-SNAPSHOT/g'
> git status
(Remove any backup files)
> git diff
> mvn clean install
(Optional: update the version numbers in this guide and the sample)
> git add *
> git commit
> git push --all
> git checkout master
Merge the branch into 'master‘
> git merge prepare-V2.2.1
Delete the local branch
> git branch -D prepare-V2.2.1
Push the latest changes
> git push --all