Skip to content

Commit 59ef316

Browse files
committed
build: standardize lowercase plugin artifacts
1 parent 340519b commit 59ef316

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/scripts/plugin-artifact.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def validate(source, version):
1515
target = Path.cwd().resolve() / "target"
1616
if not source.is_relative_to(target) or not source.is_file():
1717
raise ValueError("Expected the Maven runtime JAR inside target/")
18-
if not source.name.endswith(f"-{version}.jar"):
19-
raise ValueError("Runtime JAR filename must end with the Maven version")
18+
if not re.fullmatch(r"[a-z][a-z0-9]*-" + re.escape(version) + r"\.jar", source.name):
19+
raise ValueError("Runtime JAR filename must use a lowercase alphanumeric name followed by the Maven version")
2020
with zipfile.ZipFile(source) as jar:
2121
descriptors = {"plugin.yml", "paper-plugin.yml"}.intersection(jar.namelist())
2222
if not descriptors:

‎.github/workflows/build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
distribution: temurin
2323
java-version: '21'
2424
- name: Install shared plugin dependencies
25-
uses: TF-Minecraft/TLibs/.github/actions/setup-plugins@c19d797eb3565838790089af59e5e5028fc56576
25+
uses: TF-Minecraft/TLibs/.github/actions/setup-plugins@4f7a3545063cb2e8d06a034687c817ab863f0835
2626
with:
2727
mode: pinned
2828

‎.github/workflows/maven-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
[[ "${TAG^^}" != *SNAPSHOT* ]] || exit 1
4848
4949
- name: Install shared plugin dependencies
50-
uses: TF-Minecraft/TLibs/.github/actions/setup-plugins@c19d797eb3565838790089af59e5e5028fc56576
50+
uses: TF-Minecraft/TLibs/.github/actions/setup-plugins@4f7a3545063cb2e8d06a034687c817ab863f0835
5151
with:
5252
mode: pinned
5353

0 commit comments

Comments
 (0)