Skip to content

Commit 9bced1c

Browse files
authored
fix ci.yml (#3231)
1 parent ad48b22 commit 9bced1c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,12 @@ jobs:
5757
- name: Read project version
5858
id: version
5959
run: |
60-
VERSION="$(mvn -q -Dexec.executable=echo -Dexec.args="${project.version}" --non-recursive exec:exec)"
60+
VERSION="$(mvn -q -DforceStdout help:evaluate -Dexpression=project.version)"
6161
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
6262
6363
- name: Deploy Snapshot
6464
if: endsWith(steps.version.outputs.version, '-SNAPSHOT')
65-
run: mvn -B --no-transfer-progress \
66-
-Pmaven-central-release \
67-
-DskipTests=true deploy
65+
run: mvn -B --no-transfer-progress -Pmaven-central-release -DskipTests=true deploy
6866
env:
6967
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
7068
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

0 commit comments

Comments
 (0)