File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 11name : Build and Upload JDA Bot
22
33on :
4- push :
5- branches :
6- - main
7- pull_request :
4+ workflow_dispatch :
85
96jobs :
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
You can’t perform that action at this time.
0 commit comments