-
-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (41 loc) · 1.2 KB
/
test.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
name: Test
on:
push:
workflow_dispatch:
jobs:
build:
name: "build"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Get branch name
id: branch-name
uses: tj-actions/[email protected]
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
check-latest: true
cache: 'gradle'
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: wrapper
- name: Set Permissions
run: |
chmod +x gradlew
- name: Build with Gradle
run: |
./gradlew -Pversion="${{ steps.branch-name.outputs.current_branch }}" build --info --full-stacktrace
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: jar-and-media
path: |
build
buildSrc/build
serverpackcreator-api/build
serverpackcreator-app/build
serverpackcreator-web-frontend/dist
serverpackcreator-plugin-example/build
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn`