Add push new version after release

This commit is contained in:
Cédric Couralet 2021-05-01 22:01:44 +02:00
parent a87fce8bb5
commit ac7c937753

View File

@ -30,4 +30,14 @@ jobs:
--no-transfer-progress \
--batch-mode \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_KEY_PASSWORD }} \
clean deploy
clean deploy
- id: push new version
name: push new version
run: |
git clone https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{github.repository}}.git
cd keycloak-mail-whitelisting
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
mvn -B versions:set -DnextSnapshot -DgenerateBackupPoms=false
git commit -a -m"Prepare new version"
git push