Skip to content

Commit

Permalink
Auto update readme when releasing a new version
Browse files Browse the repository at this point in the history
  • Loading branch information
eltos committed Dec 9, 2021
1 parent 608ac62 commit 34f56f6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .idea/runConfigurations/Release_new_version.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<img width="40%" align="right" src="https://github.com/eltos/SimpleDialogFragments/raw/main/media/screenshot.png"/>

SimpleDialogFragments Library is a collection of easy to use and extendable DialogFragment's for Android.
It is fully compatible with rotation changes and can be implemented with only a few lines of code.
It is fully compatible with rotation changes and can be implemented with only a few lines of code.

A new approach of result handling ensures data integrity over rotation changes, that many other libraries lack.

Expand Down
7 changes: 7 additions & 0 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,10 @@ nexusPublishing {
}
}

task 'update version in README manu' {
doLast {
ant.replaceregexp(match: '(eltos:simpledialogfragments:v?)\\d(\\.\\d)*', replace: '\\1'+VERSION, flags: 'g', byline: true) {
fileset(dir: '.', includes: 'README.md')
}
}
}

0 comments on commit 34f56f6

Please sign in to comment.