Skip to content

Commit

Permalink
Unroll release:prepare to add cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avarsava committed Apr 10, 2024
1 parent 7b919df commit f876fb0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changes/fix_release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add fix for building rust projects in github actions

14 changes: 12 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,18 @@ echo "Preparing ${RELEASE_TYPE} release ${NEW_VERSION}..."
./compact-changelog.sh ${NEW_VERSION} || exit 2
git commit -a -m "Update release notes for release"

# Do the Maven release step
mvn release:prepare -DreleaseVersion=${NEW_VERSION} -DtagNameFormat=v@{version} --batch-mode release:clean
# Release
mvn versions:set -DnewVersion=${NEW_VERSION} -DgenerateBackupPoms=false
sed -i -e 's/^version = .*$/version = "'$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | cut -f 1 -d -)'"/' */Cargo.toml
git commit -a -m "prepare release v${NEW_VERSION}"
git tag -a v${NEW_VERSION} -m "prepare v${NEW_VERSION} release"
mvn clean install
mvn versions:set -DnextSnapshot=true -DgenerateBackupPoms=false
git commit -a -m "prepared for next development iteration"
git push origin master
git push origin v${NEW_VERSION}

# Deploy
git checkout v${NEW_VERSION}
mvn deploy
git checkout master
Expand Down

0 comments on commit f876fb0

Please sign in to comment.