From 7fbab0d7b16e9c8d582868c547645d49c8807653 Mon Sep 17 00:00:00 2001 From: Koopa <115321970+KoopaCode@users.noreply.github.com> Date: Fri, 31 Jan 2025 21:10:26 -0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48a575d..a2c07e9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,4 @@ name: Build -env: - PLUGIN_NAME: LifeStealCore - PLUGIN_FILE: lifestealcore - on: push: branches: [ "main" ] @@ -28,8 +24,11 @@ jobs: distribution: 'temurin' cache: maven - - name: Get Version - run: echo "PLUGIN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV + - name: Get Project Info + run: | + echo "PLUGIN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV + echo "PLUGIN_NAME=$(mvn help:evaluate -Dexpression=project.name -q -DforceStdout)" >> $GITHUB_ENV + echo "PLUGIN_FILE=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)" >> $GITHUB_ENV - name: Build with Maven run: mvn -B package --file pom.xml