generated from Lyzev/FabricModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 902 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
38
39
40
41
42
43
on:
pull_request:
branches:
- 'master'
paths:
- '.github'
- 'src'
push:
branches:
- '**'
tags:
- '[0-9]+.[0-9]+.[0-9]+'
paths-ignore:
- '.idea/**'
- .gitignore
- .gitattributes
- .editorconfig
- CODEOWNERS
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- SECURITY.md
- LICENSE
- README.md
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
cache: gradle
- name: Build the project
run: chmod +x gradlew && ./gradlew build
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: build/libs/