-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (75 loc) · 2.31 KB
/
plugin.yml
File metadata and controls
89 lines (75 loc) · 2.31 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Refer to https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
name: IceRunner Kotlin CI
permissions:
id-token: write
attestations: write
on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main", "dev"]
jobs:
# Job that builds the plugin JAR
check:
runs-on: ubuntu-latest
steps:
# Copies the repository content
- uses: actions/checkout@v6
# Sets up the java version and enables Maven caching strategy
- name: Set up JDK 21 for x64
uses: actions/setup-java@v5
with:
java-version: "21"
distribution: "corretto"
architecture: x64
cache: gradle
- name: Run the Gradle build script
run: "./gradlew check"
# Running the plugin's tests
doc:
needs: [check]
runs-on: ubuntu-latest
steps:
# Copies the repository content
- uses: actions/checkout@v6
# Sets up the java version and enables Maven caching strategy
- name: Set up JDK 21 for x64
uses: actions/setup-java@v5
with:
java-version: "21"
distribution: "corretto"
architecture: x64
cache: gradle
- name: Run the Gradle doc build script
run: "./gradlew dokkaGeneratePublicationHtml"
- name: Archive generated fat JAR file
uses: actions/upload-artifact@v6
with:
name: 'IceRunner-Docs'
path: build/dokka/html/
# Running the plugin's tests
build:
needs: [check]
runs-on: ubuntu-latest
steps:
# Copies the repository content
- uses: actions/checkout@v6
# Sets up the java version and enables Maven caching strategy
- name: Set up JDK 21 for x64
uses: actions/setup-java@v5
with:
java-version: "21"
distribution: "corretto"
architecture: x64
cache: gradle
- name: Run the Gradle Fat JAR build script
run: "./gradlew shadowJar"
- name: Archive generated fat JAR file
uses: actions/upload-artifact@v6
with:
name: 'IceRunner-${{ github.sha }}.jar'
path: artifacts/IceRunner.jar
- name: Attest build provenance of said artifact
uses: actions/attest-build-provenance@v3
with:
subject-path: artifacts/IceRunner.jar