name: Build on: push: branches: [main] pull_request: branches: [main] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Set up JDK 21 (Temurin) uses: actions/setup-java@v4 with: distribution: temurin java-version: '21' cache: maven # The AuthMe jar is a system-scope dependency referenced by pom.xml # but is not redistributed in this repo. Set the AUTHME_JAR_URL repo # secret to a direct download URL for AuthMe-5.6.0-FORK-Universal.jar # before this workflow can succeed. See lib/README.md for context. - name: Fetch AuthMe jar env: AUTHME_JAR_URL: ${{ secrets.AUTHME_JAR_URL }} run: | if [ -z "$AUTHME_JAR_URL" ]; then echo "::error::AUTHME_JAR_URL secret is not set. See lib/README.md." exit 1 fi curl -fsSL "$AUTHME_JAR_URL" -o lib/AuthMe-5.6.0-FORK-Universal.jar ls -la lib/ - name: Build with Maven run: mvn -B -ntp package - name: Upload jar artifact uses: actions/upload-artifact@v4 with: name: AuthLimbo-jar path: target/AuthLimbo-*.jar if-no-files-found: error