Merge pull request #161 from f3f5-dev/patch-1 #859
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: Build and upload jar | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 8.0.362+9 | |
distribution: temurin | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3.1.2 | |
with: | |
# Artifact name | |
name: AnarchyExploitFixes | |
# A file, directory or wildcard pattern that describes what to upload | |
path: AnarchyExploitFixesLegacy/target/AnarchyExploitFixes-Legacy*.jar | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3.1.2 | |
with: | |
# Artifact name | |
name: AnarchyExploitFixes | |
# A file, directory or wildcard pattern that describes what to upload | |
path: AnarchyExploitFixesFolia/target/AnarchyExploitFixes-Folia*.jar |