-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.54 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Caching
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
./.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('build.gradle.kts', 'gradle.properties', 'gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Set Git Identity
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
- name: Clean Paperweight Cache
run: ./gradlew cleanCache -Dpaperweight.debug=true
- name: Apply BenPlane Patches
run: ./gradlew applyPatches -Dpaperweight.debug=true
- name: Build Paperclip Jar
run: ./gradlew paperclipJar -Dpaperweight.debug=true
- name: Upload Paperclip Jar
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/libs/BenPlane-1.18.1-R0.1-SNAPSHOT.jar
tag: 1.18.1-R0.1-SNAPSHOT
asset_name: BenPlane.jar
overwrite: true