Create maven.yml workflow #2
Workflow file for this run
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: Java CI with Maven | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Install MangoScript | |
run: | | |
git clone https://github.com/MangoPlex/MangoScript.git | |
mvn -B install --file MangoScript/pom.xml | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Upload plugins as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Pojo Plugins | |
path: | | |
pojo-plugin/target/*.jar | |
pojo-expansion/target/*.jar |