Update build.yml

This commit is contained in:
Koopa 2025-01-31 21:10:26 -05:00 committed by GitHub
parent d1f4414edf
commit 7fbab0d7b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,8 +1,4 @@
name: Build name: Build
env:
PLUGIN_NAME: LifeStealCore
PLUGIN_FILE: lifestealcore
on: on:
push: push:
branches: [ "main" ] branches: [ "main" ]
@ -28,8 +24,11 @@ jobs:
distribution: 'temurin' distribution: 'temurin'
cache: maven cache: maven
- name: Get Version - name: Get Project Info
run: echo "PLUGIN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV 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 - name: Build with Maven
run: mvn -B package --file pom.xml run: mvn -B package --file pom.xml