Skip to content
This repository was archived by the owner on Feb 28, 2019. It is now read-only.

Commit ad67144

Browse files
committed
Patch README as part of the release
1 parent ccb71c4 commit ad67144

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The simplest way to use component;
1515
<dependency>
1616
<groupId>org.realityforge.react4j.widget</groupId>
1717
<artifactId>react4j-widget</artifactId>
18-
<version>0.01</version>
18+
<version>1.05</version>
1919
</dependency>
2020
```
2121

tasks/release.rake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ HEADER
7777
sh 'git commit -m "Update CHANGELOG.md in preparation for release"'
7878
end
7979

80+
stage('PatchReadme', 'Patch the README to update from previous release') do
81+
contents = IO.read('README.md')
82+
contents = contents.gsub("<version>#{ENV['PREVIOUS_PRODUCT_VERSION']}</version>", "<version>#{ENV['PRODUCT_VERSION']}</version>")
83+
IO.write('README.md', contents)
84+
85+
sh 'git reset 2>&1 1> /dev/null'
86+
sh 'git add README.md'
87+
sh 'git commit -m "Update README.md in preparation for release"'
88+
end
89+
8090
stage('TagProject', 'Tag the project') do
8191
sh "git tag v#{ENV['PRODUCT_VERSION']}"
8292
end

0 commit comments

Comments
 (0)