-
-
Notifications
You must be signed in to change notification settings - Fork 49
42 lines (32 loc) · 846 Bytes
/
Copy pathbuild.yml
File metadata and controls
42 lines (32 loc) · 846 Bytes
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
name: Build & Test
on: [push, pull_request]
permissions:
id-token: write
attestations: write
artifact-metadata: write
jobs:
build:
runs-on: ubuntu-latest
name: Build with gradle
steps:
- uses: actions/setup-java@v5
with:
java-version: 25
distribution: temurin
- uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v6
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Check with Gradle
run: ./gradlew check
- name: Build with Gradle
run: ./gradlew build
- uses: actions/attest@v4
with:
subject-path: build/libs/*.jar
- uses: actions/upload-artifact@v7
with:
path: build/libs/*