Skip to content

Commit 8ae1047

Browse files
committed
build: fix prepare release
- Do git push in separate step
1 parent 2a1e31b commit 8ae1047

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/prepare_release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ jobs:
2626
java-version: '8'
2727
cache: 'maven'
2828

29-
- name: Change remote origin to HTTPS
30-
run: |
31-
git remote set-url origin https://github.com/${GITHUB_REPOSITORY}.git
32-
3329
- name: Configure Git user
3430
run: |
3531
git config user.email "actions@github.com"
@@ -44,4 +40,15 @@ jobs:
4440
run: |
4541
./mvnw release:prepare -DskipTests -Darguments=-DskipTests \
4642
-DreleaseVersion="$RELEASE_VERSION" -Dtag="$RELEASE_VERSION" \
47-
-DdevelopmentVersion="$DEVELOPMENT_VERSION"
43+
-DdevelopmentVersion="$DEVELOPMENT_VERSION" -DpushChanges=false
44+
45+
- name: Change remote origin to HTTPS
46+
run: |
47+
git remote set-url origin https://github.com/${GITHUB_REPOSITORY}.git
48+
49+
- name: Push release tag
50+
env:
51+
GITHUB_ACTOR: ${{ github.actor }}
52+
GITHUB_TOKEN: ${{ github.token }}
53+
run: |
54+
git push origin master --follow-tags

0 commit comments

Comments
 (0)