-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (35 loc) · 1.29 KB
/
compile-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/Javadoc-publisher.yml@v2.4.0
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