Merge pull request #168 from LewMC/main #554
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven Build | |
on: | |
push: | |
branches: | |
- "*" | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
- '**/*.xml' | |
- '**/*.json' | |
- '**/*.html' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository 📡 | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 🔧 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Build with Maven 🏗️ | |
run: mvn -B package --file pom.xml | |
- name: Extract Version from pom.xml 📄 | |
id: extract_version | |
run: echo "VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV | |
- name: Upload Plugin jar 📁 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: essence-${{ env.VERSION }}.jar | |
path: /home/runner/work/Essence/Essence/target/essence-${{ env.VERSION }}.jar | |