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 upload artifacts

This commit is contained in:
Grigory Efimov 2024-06-05 02:08:28 -03:00
parent 2b7025719b
commit 11debfb55c
No known key found for this signature in database
GPG key ID: 0A88C34DFA7FD939

View file

@ -178,10 +178,11 @@ jobs:
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
cd artifacts
$files = Get-ChildItem -File
$files = Get-ChildItem -File artifacts
foreach ($file in $files) {
curl.exe -H "Authorization: Bearer ${{ secrets.PUBLISH_RELEASES_TOKEN }}" -T $file.FullName "https://publish-releases.anytype.io/electron/${{ steps.release-version.outputs.RELEASE_VERSION }}/$($file.Name)"
$uploadUrl = "https://publish-releases.anytype.io/electron/${{ steps.release-version.outputs.RELEASE_VERSION }}/$($file.Name)"
echo "Uploading files to $uploadUrl"
curl.exe -H "Authorization: Bearer ${{ secrets.PUBLISH_RELEASES_TOKEN }}" -T $file.FullName $uploadUrl
}
- name: Delete old releases