99env :
1010 APP_SLUG : cloud-api-plugin
1111 REGISTRY_URL : https://registry.simplecloud.app
12- MINECRAFT_VERSIONS : >-
13- [
14- "1.20",
15- "1.20.1",
16- "1.20.2",
17- "1.20.3",
18- "1.20.4",
19- "1.20.5",
20- "1.20.6",
21- "1.21",
22- "1.21.1",
23- "1.21.2",
24- "1.21.3",
25- "1.21.4"
26- ]
12+ MINECRAFT_VERSIONS : ' ["1.20","1.20.1","1.20.2","1.20.3","1.20.4","1.20.5","1.20.6","1.21","1.21.1","1.21.2","1.21.3","1.21.4"]'
2713
2814jobs :
2915 build :
@@ -63,13 +49,18 @@ jobs:
6349 echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
6450
6551 - name : Build ShadowJars
66- run : ./gradlew clean build shadowJar
52+ run : |
53+ ./gradlew clean build shadowJar
54+ mkdir -p artifacts
55+ cp platform/spigot/build/libs/spigot.jar artifacts/
56+ cp platform/bungeecord/build/libs/bungeecord.jar artifacts/
57+ cp platform/velocity/build/libs/velocity.jar artifacts/
6758
6859 - name : Upload artifacts
6960 uses : actions/upload-artifact@v4
7061 with :
7162 name : build-artifacts
72- path : platform/*/build/libs /*.jar
63+ path : artifacts /*.jar
7364 compression-level : 0
7465
7566 publish-registry :
@@ -97,13 +88,16 @@ jobs:
9788 APP_ID=$(echo $response | jq -r '.release.application_id')
9889 echo "APP_ID=$APP_ID" >> $GITHUB_ENV
9990
91+ - name : List artifacts directory
92+ run : ls -R artifacts
93+
10094 - name : Upload to Registry
10195 run : |
10296 # Upload Spigot Platform
10397 curl -X POST \
10498 -H "Authorization: Bearer ${{ secrets.REGISTRY_TOKEN }}" \
10599 -H "Content-Type: multipart/form-data" \
106- -F "file=@artifacts/platform/spigot/build/libs/ spigot.jar" \
100+ -F "file=@artifacts/spigot.jar" \
107101 -F "platform=minecraft_plugin" \
108102 -F "arch=spigot" \
109103 -F "platform_versions=${{ env.MINECRAFT_VERSIONS }}" \
@@ -113,7 +107,7 @@ jobs:
113107 curl -X POST \
114108 -H "Authorization: Bearer ${{ secrets.REGISTRY_TOKEN }}" \
115109 -H "Content-Type: multipart/form-data" \
116- -F "file=@artifacts/platform/spigot/build/libs/ spigot.jar" \
110+ -F "file=@artifacts/spigot.jar" \
117111 -F "platform=minecraft_plugin" \
118112 -F "arch=paper" \
119113 -F "platform_versions=${{ env.MINECRAFT_VERSIONS }}" \
@@ -123,7 +117,7 @@ jobs:
123117 curl -X POST \
124118 -H "Authorization: Bearer ${{ secrets.REGISTRY_TOKEN }}" \
125119 -H "Content-Type: multipart/form-data" \
126- -F "file=@artifacts/platform/bungeecord/build/libs/ bungeecord.jar" \
120+ -F "file=@artifacts/bungeecord.jar" \
127121 -F "platform=minecraft_plugin" \
128122 -F "arch=bungeecord" \
129123 -F "platform_versions=${{ env.MINECRAFT_VERSIONS }}" \
@@ -133,7 +127,7 @@ jobs:
133127 curl -X POST \
134128 -H "Authorization: Bearer ${{ secrets.REGISTRY_TOKEN }}" \
135129 -H "Content-Type: multipart/form-data" \
136- -F "file=@artifacts/platform/velocity/build/libs/ velocity.jar" \
130+ -F "file=@artifacts/velocity.jar" \
137131 -F "platform=minecraft_plugin" \
138132 -F "arch=velocity" \
139133 -F "platform_versions=${{ env.MINECRAFT_VERSIONS }}" \
0 commit comments