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