Skip to content

Commit 9b1223a

Browse files
committed
Fix some stuff
1 parent b935fbc commit 9b1223a

File tree

2 files changed

+16
-60
lines changed

2 files changed

+16
-60
lines changed

.github/workflows/build-and-release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,16 @@ jobs:
3737
id: build
3838
run: |
3939
./gradlew build
40-
JAR_FILE=$(ls build/libs/*.jar | grep -v sources | head -1)
41-
echo "filename=$(basename $JAR_FILE)" >> $GITHUB_OUTPUT
40+
# Read mod id and version from gradle.properties to match Gradle's jar naming
41+
MOD_ID=$(grep "^mod_id=" gradle.properties | cut -d'=' -f2)
42+
MOD_VER=$(grep "^mod_version=" gradle.properties | cut -d'=' -f2)
43+
# Prefer the canonical Gradle artifact name: ${MOD_ID}-${MOD_VER}*.jar
44+
JAR_FILE=$(ls build/libs/"${MOD_ID}-${MOD_VER}"*.jar 2>/dev/null | grep -v sources | head -1 || true)
45+
# Fallback: pick the first non-sources jar
46+
if [ -z "$JAR_FILE" ]; then
47+
JAR_FILE=$(ls build/libs/*.jar | grep -v sources | head -1 || true)
48+
fi
49+
echo "filename=$(basename "$JAR_FILE")" >> $GITHUB_OUTPUT
4250
4351
- name: Get version from gradle.properties
4452
id: version

README.md

Lines changed: 6 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -11,80 +11,28 @@ This mod contains a decent amount of content, such as:
1111
## Discs
1212
Expanding from the previous section, this mod adds several new music discs, such as:
1313

14-
**Lava Chicken**\
15-
<img
16-
src="src/main/resources/assets/discs/textures/item/music_disc_lava_chicken.png"
17-
alt="Lava Chicken"
18-
width="75"
19-
height="75"
20-
style="image-rendering: pixelated; image-rendering: crisp-edges;"
21-
/>\
14+
![Lava Chicken](src/main/resources/assets/discs/textures/item/music_disc_lava_chicken.png) **Lava Chicken**\
2215
This disc is fully backported from the latest versions of the game, obtainment is the same
2316

24-
---
25-
26-
**The Skibidi PenguinMod Song**\
27-
<img
28-
src="src/main/resources/assets/discs/textures/item/music_disc_the_skibidi_penguinmod_song.png"
29-
alt="The Skibidi PenguinMod Song"
30-
width="75"
31-
height="75"
32-
style="image-rendering: pixelated; image-rendering: crisp-edges;"
33-
/>\
17+
![The Skibidi PenguinMod Song](src/main/resources/assets/discs/textures/item/music_disc_the_skibidi_penguinmod_song.png) **The Skibidi PenguinMod Song**\
3418
This disc is obtained via Creeper killed by Skeleton drops\
3519
Music credit goes to @ddededodediamante\
3620
You can find the song [here](https://www.youtube.com/watch?v=IRltNNCLVFI)
3721

38-
---
39-
40-
**Wither Storm Theme**\
41-
<img
42-
src="src/main/resources/assets/discs/textures/item/music_disc_wither_storm_theme.png"
43-
alt="Wither Storm Theme"
44-
width="75"
45-
height="75"
46-
style="image-rendering: pixelated; image-rendering: crisp-edges;"
47-
/>\
22+
![Wither Storm Theme](src/main/resources/assets/discs/textures/item/music_disc_wither_storm_theme.png) **Wither Storm Theme**\
4823
This disc is obtained via crafting (8 disc fragments and a nether star)\
4924
Music credit goes to **Antimo & Welles**\
5025
You can find the song [here](https://www.youtube.com/watch?v=3NlkqN3O1MU)
5126

52-
---
53-
54-
**Never Gonna Give You Up**\
55-
<img
56-
src="src/main/resources/assets/discs/textures/item/music_disc_never_gonna_give_you_up.png"
57-
alt="Never Gonna Give You Up"
58-
width="75"
59-
height="75"
60-
style="image-rendering: pixelated; image-rendering: crisp-edges;"
61-
/>\
27+
![Never Gonna Give You Up](src/main/resources/assets/discs/textures/item/music_disc_never_gonna_give_you_up.png) **Never Gonna Give You Up**\
6228
This disc is obtained via trading with the DJ villager\
6329
Music credit goes to **Rick Astley**\
6430
You can find the song [here](https://www.youtube.com/watch?v=dQw4w9WgXcQ)
6531

66-
---
67-
68-
**Thick Of It (Villager Cover)**\
69-
<img
70-
src="src/main/resources/assets/discs/textures/item/music_disc_thick_of_it.png"
71-
alt="Thick Of It (Villager Cover)"
72-
width="75"
73-
height="75"
74-
style="image-rendering: pixelated; image-rendering: crisp-edges;"
75-
/>\
32+
![Thick Of It (Villager Cover)](src/main/resources/assets/discs/textures/item/music_disc_thick_of_it.png) **Thick Of It (Villager Cover)**\
7633
This disc is obtained via the chest that spawns in igloo basements\
7734
You can find the song [here](https://www.youtube.com/watch?v=K6Cpxjx2oUg)
7835

79-
---
80-
81-
**Stuck Inside (Green Skeleton Cover)**\
82-
<img
83-
src="src/main/resources/assets/discs/textures/item/music_disc_stuck_inside.png"
84-
alt="Stuck Inside (Green Skeleton Cover)"
85-
width="75"
86-
height="75"
87-
style="image-rendering: pixelated; image-rendering: crisp-edges;"
88-
/>\
36+
![Stuck Inside (Green Skeleton Cover)](src/main/resources/assets/discs/textures/item/music_disc_stuck_inside.png) **Stuck Inside (Green Skeleton Cover)**\
8937
This disc is obtained via Creeper killed by Skeleton drops\
9038
You can find the song [here](https://www.youtube.com/watch?v=pcwLin54JcE)

0 commit comments

Comments
 (0)