Skip to content

Update workflow to package all artifacts into archive's root #5

Update workflow to package all artifacts into archive's root

Update workflow to package all artifacts into archive's root #5

Workflow file for this run

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: Copy artifacts root
run: |
cp pojo-plugin/target/pojo-*.jar ./
cp pojo-expansion/target/pojo-*.jar ./
- name: Upload plugins as artifact
uses: actions/upload-artifact@v4
with:
name: Pojo Plugins
path: |
./pojo-*.jar