Normalize Windows package filename
This commit is contained in:
@@ -88,17 +88,15 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for artifact in "${artifacts[@]}"; do
|
||||
file_name="$(basename "$artifact")"
|
||||
curl --fail-with-body \
|
||||
--user "MrSphay:${REGISTRY_TOKEN}" \
|
||||
--upload-file "$artifact" \
|
||||
"https://git.wilkensxl.de/api/packages/MrSphay/generic/${package_name}/${package_version}/${file_name}"
|
||||
done
|
||||
mkdir -p package-latest
|
||||
cp "${artifacts[0]}" "package-latest/Modrinth-Plus-Windows-Setup-${package_version}.exe"
|
||||
|
||||
curl --fail-with-body \
|
||||
--user "MrSphay:${REGISTRY_TOKEN}" \
|
||||
--upload-file "package-latest/Modrinth-Plus-Windows-Setup-${package_version}.exe" \
|
||||
"https://git.wilkensxl.de/api/packages/MrSphay/generic/${package_name}/${package_version}/Modrinth-Plus-Windows-Setup-${package_version}.exe"
|
||||
|
||||
curl --silent --show-error --user "MrSphay:${REGISTRY_TOKEN}" --request DELETE "${latest_url}" || true
|
||||
|
||||
mkdir -p package-latest
|
||||
cp "${artifacts[0]}" "package-latest/Modrinth-Plus-Windows-Setup.exe"
|
||||
|
||||
curl --fail-with-body \
|
||||
|
||||
Reference in New Issue
Block a user