1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

.github/workflows/build.yml fixed encodedUploadUrl

This commit is contained in:
Grigory Efimov 2024-06-05 03:03:57 -03:00
parent 7e4d1bce2e
commit d3a20aa824
No known key found for this signature in database
GPG key ID: 0A88C34DFA7FD939

View file

@ -180,8 +180,9 @@ jobs:
$files = Get-ChildItem -File artifacts
foreach ($file in $files) {
$uploadUrl = "https://publish-releases.anytype.io/electron/$releaseVersion/$($file.Name)"
echo "Uploading files to $uploadUrl"
curl.exe -H "Authorization: Bearer ${{ secrets.PUBLISH_RELEASES_TOKEN }}" -T $file.FullName $uploadUrl
$encodedUploadUrl = [System.Uri]::EscapeDataString($uploadUrl)
echo "Uploading files to $encodedUploadUrl"
curl.exe -H "Authorization: Bearer ${{ secrets.PUBLISH_RELEASES_TOKEN }}" -T $file.FullName $encodedUploadUrl
}
- name: Delete old releases