Skip to content

Commit ddc7a9a

Browse files
committed
Bump version to 0.2.2-SNAPSHOT and add JAR artifact upload step
1 parent f539989 commit ddc7a9a

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
java-version: '21'
2525
distribution: 'temurin' # Or 'adopt', 'zulu', etc.
26-
26+
2727
# 3. Give permission to gradle to execute commands
2828
- name: Grant execute permission for gradlew
2929
run: chmod +x gradlew
@@ -35,7 +35,16 @@ jobs:
3535

3636
# Gradle with the new updates doesn't support arguments
3737
- name: Build jar
38-
run: ./gradlew shadowJar
38+
run: ./gradlew shadowJar
39+
40+
# Upload JAR as an artifact (NEW STEP)
41+
- name: Upload JAR Artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: plugin-jar
45+
path: bukkit/build/libs/*.jar # Adjust this path to match your JAR location
46+
retention-days: 14 # Keep artifacts for 14 days
47+
if-no-files-found: error # Fail the workflow if no JARs are found
3948

4049
# --- Infrastructure Testing ---
4150

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group = "it.renvins"
2-
version = "0.2.1-SNAPSHOT"
2+
version = "0.2.2-SNAPSHOT"
33

44
repositories {
55
mavenCentral()

0 commit comments

Comments
 (0)