-
Notifications
You must be signed in to change notification settings - Fork 30
48 lines (48 loc) · 1.42 KB
/
main.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
39
40
41
42
43
44
45
46
47
48
name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [21]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
MAVEN_URL: ${{secrets.SNAPSHOT_MAVEN_URL}}
MAVEN_USERNAME: ${{secrets.MAVEN_USERNAME}}
MAVEN_PASSWORD: ${{secrets.MAVEN_PASSWORD}}
steps:
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout FrozenLib
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: FrozenBlock/FrozenLib
ref: master
submodules: recursive
path: FrozenLib
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Make Gradle Wrapper Executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Build
run: ./gradlew build publish -PuseThirdPartyMods=false