-
-
Notifications
You must be signed in to change notification settings - Fork 86
37 lines (37 loc) · 1.23 KB
/
build.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
name: Build plugin
on: [pull_request, push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
distribution: [temurin]
java-version: ["17"]
runs-on: ${{ matrix.os }}
if: "!startsWith(github.event.commits[0].message, '[ci-skip]')"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: "Setup JDK (${{ matrix.distribution }} ${{ matrix.java-version }})"
uses: actions/setup-java@v4
with:
distribution: "${{ matrix.distribution }}"
java-version: "${{ matrix.java-version }}"
- name: "Cache: ~/.gradle/caches, ~/.gradle/wrapper"
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew
- name: Upload the plugin JAR
uses: actions/upload-artifact@v3
with:
name: "Quests-JDK${{ matrix.java-version }}"
path: build/libs/*.jar