Scala 3 example: bump Spigot-API dependency. #229
Workflow file for this run
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: Compile and Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
# Use Eclipse Temurin's OpenJDK because Microsoft doesn't seem to want to build non-LTS releases. | |
distribution: 'temurin' | |
java-version: '21' | |
cache: 'maven' | |
- name: Compile ScalaLoader | |
run: mvn --batch-mode --update-snapshots verify -DfinalName=ScalaLoader | |
- name: Create tagged release | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
ScalaLoader/target/ScalaLoader.jar | |
- name: Deploy Javadoc | |
uses: MathieuSoysal/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
javadoc-branch: javadoc | |
java-distribution: temurin | |
java-version: 21 | |
custom-command: 'mvn package javadoc:aggregate -pl :ScalaPluginLoader,:ScalaLoader-Common,:ScalaLoader-Bukkit,:ScalaLoader-Paper' | |
target-folder: javadoc | |
project: maven |