Browse Source

update prepare script

main
Distopico Vegan 6 years ago
parent
commit
d3b7bab512
2 changed files with 6 additions and 1 deletions
  1. +1
    -1
      .releaserc.yml
  2. +5
    -0
      scripts/prepare.sh

+ 1
- 1
.releaserc.yml View File

@ -3,7 +3,7 @@ plugins:
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
- - "@semantic-release/exec"
- prepareCmd: 'VERSIONCODE=`grep "versionCode .*" app/build.gradle | sed "s/versionCode //"` && sed -i "s/versionCode .*$/versionCode $(($VERSIONCODE + 1))/; s/versionName .*$/versionName \"${nextRelease.version}"/" app/build.gradle'
- prepareCmd: './scripts/prepare.sh ${nextRelease.version}'
- - "@semantic-release/git"
- assets:
- CHANGELOG.md


+ 5
- 0
scripts/prepare.sh View File

@ -0,0 +1,5 @@
#!/bin/sh
FILE="app/build.gradle"
VERSIONCODE=`grep "versionCode .*" $FILE | sed "s/versionCode //"`
sed -i "s/versionCode .*$/versionCode $(($VERSIONCODE + 1))/; s/versionName .*$/versionName \"$1\"/" $FILE

Loading…
Cancel
Save