Skip to content

Commit 14cca4b

Browse files
committed
Add Maven version setting step in snapshot deploy workflow
1 parent 2b97165 commit 14cca4b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/snapshot_deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ jobs:
6767
echo "Using Maven revision: ${REVISION}"
6868
echo "REVISION=${REVISION}" >> "$GITHUB_ENV"
6969
70+
- name: Set Maven Version
71+
run: mvn versions:set -DnewVersion="${REVISION}"
72+
7073
- name: Deploy Snapshot
7174
env:
7275
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7376
REPO: ${{ github.repository }}
7477
run: |
7578
echo "Deploying to https://maven.pkg.github.com/${REPO} with revision ${REVISION}"
7679
mvn deploy -DskipTests \
77-
-Dgithub.repo.url="https://maven.pkg.github.com/${REPO}" \
78-
-Drevision="${REVISION}"
80+
-Dgithub.repo.url="https://maven.pkg.github.com/${REPO}"

0 commit comments

Comments
 (0)