Skip to content

Commit e0566c6

Browse files
authored
Update maven.yml
1 parent 97e4360 commit e0566c6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/maven.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ on:
1616

1717
jobs:
1818
build:
19-
2019
runs-on: ubuntu-latest
21-
2220
steps:
2321
- uses: actions/checkout@v4
2422
- name: Set up JDK 17
@@ -33,8 +31,14 @@ jobs:
3331
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
3432
- name: Update dependency graph
3533
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
34+
- name: Extract project version from pom.xml
35+
id: version
36+
run: |
37+
VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
38+
echo "version=$VERSION" >> $GITHUB_ENV
39+
echo "📦 Project version: $VERSION"
3640
- name: Upload Plugin jar
3741
uses: actions/upload-artifact@v4
3842
with:
39-
name: Plugin-${{ env.snapshotVersion }}-${{ env.git_hash }}.jar
40-
path: ${{ env.artifactPath }}/Plugin-${{ env.snapshotVersion }}.jar
43+
name: DupePlus-${{ env.version }}.jar
44+
path: target/DupePlus-${{ env.version }}.jar

0 commit comments

Comments
 (0)