Skip to content

Commit e7f0a1e

Browse files
authored
Update build.yml
1 parent 4d1781e commit e7f0a1e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
name: Build and Upload JDA Bot
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
4+
workflow_dispatch:
85

96
jobs:
107
build:
118
runs-on: ubuntu-latest
129

1310
steps:
14-
# 1. Checkout Repository
1511
- name: Checkout repository
1612
uses: actions/checkout@v4
1713

18-
# 2. Setup Java
1914
- name: Setup Java
2015
uses: actions/setup-java@v4
2116
with:
2217
distribution: temurin
2318
java-version: 21
2419

25-
# 3. Cache Gradle
20+
- name: Make gradlew executable
21+
run: chmod +x ./gradlew
22+
2623
- name: Cache Gradle
2724
uses: actions/cache@v4
2825
with:
@@ -33,13 +30,11 @@ jobs:
3330
restore-keys: |
3431
${{ runner.os }}-gradle-
3532
36-
# 4. Build ShadowJar
3733
- name: Build with Gradle ShadowJar
3834
run: ./gradlew shadowJar
3935

40-
# 5. Upload Artifact
4136
- name: Upload Bot JAR
4237
uses: actions/upload-artifact@v4
4338
with:
4439
name: jda-bot-jar
45-
path: build/libs/*-all.jar
40+
path: build/libs/**/*.jar

0 commit comments

Comments
 (0)