-
Notifications
You must be signed in to change notification settings - Fork 4
66 lines (64 loc) · 2.24 KB
/
gradle.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
56
57
58
59
60
61
62
63
64
65
66
name: Java CI with Gradle
on: [ push, pull_request ]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
java: [ 11, 17 ]
fail-fast: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up JDK ${{ matrix.java }}
uses: actions/[email protected]
with:
distribution: adopt
java-version: ${{ matrix.java }}
- name: Build Itemszop
run: ./gradlew build
- name: Upload Itemszop
uses: actions/[email protected]
with:
name: Itemszop Built On ${{ matrix.java }} JDK
path: "Spigot/build/libs/Itemszop*.jar"
- name: Upload Itemszop
uses: actions/[email protected]
with:
name: Itemszop Built On ${{ matrix.java }} JDK
path: "BungeeCord/build/libs/Itemszop*.jar"
- name: Upload Itemszop
uses: actions/[email protected]
with:
name: Itemszop Built On ${{ matrix.java }} JDK
path: "Velocity/build/libs/Itemszop*.jar"
- uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: dev-build-jdk-${{ matrix.java }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release the build
uses: ncipollo/release-action@v1
with:
artifacts: "Spigot/build/libs/Itemszop*.jar"
body: ${{ join(github.event.commits.*.message, '\n') }}
prerelease: true
name: JDK ${{ matrix.java }} Dev-build
tag: dev-build-jdk-${{ matrix.java }}
- name: Release the build
uses: ncipollo/release-action@v1
with:
artifacts: "BungeeCord/build/libs/Itemszop*.jar"
body: ${{ join(github.event.commits.*.message, '\n') }}
prerelease: true
name: JDK ${{ matrix.java }} Dev-build
tag: dev-build-jdk-${{ matrix.java }}
- name: Release the build
uses: ncipollo/release-action@v1
with:
artifacts: "Velocity/build/libs/Itemszop*.jar"
body: ${{ join(github.event.commits.*.message, '\n') }}
prerelease: true
name: JDK ${{ matrix.java }} Dev-build
tag: dev-build-jdk-${{ matrix.java }}