Bump org.apache.maven.plugins:maven-compiler-plugin (#8) #52
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 API | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
steps: | |
# Get the latest commit ID | |
- id: commit | |
uses: prompt/actions-commit-hash@v3 | |
# Clone the repo & its submodules | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
# Setup Java & Maven | |
- name: Install Java 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
architecture: x64 | |
# Compile the project | |
- name: Compile the NetHandler | |
run: cd NetHandler && mvn clean install | |
- name: Compile the API | |
run: mvn clean install | |
# Create a release with the compiled API jar | |
- uses: ncipollo/release-action@v1 | |
with: | |
draft: true | |
artifacts: "target/CheatBreakerAPI.jar" | |
tag: ${{ steps.commit.outputs.short }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generateReleaseNotes: true |