-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 983 Bytes
/
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
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Make Gradle Wrapper Executable
run: chmod +x gradlew
- name: Build
uses: gradle/gradle-build-action@v3
with:
arguments: build
gradle-home-cache-cleanup: true
- name: Publish to Modrinth
uses: gradle/gradle-build-action@v3
if: ${{ success() && github.repository == 'onebeastchris/customplayerheads' && github.ref_name == 'master' }}
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
with:
arguments: modrinth
gradle-home-cache-cleanup: true