Update workflow to package all artifacts into archive's root #5
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: 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 |