From f66952e71627e3224d3b180782c6dfe39205b6a1 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Sun, 29 Oct 2023 07:18:44 +0100 Subject: [PATCH] remove condition --- .github/workflows/binary-build.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/binary-build.yml b/.github/workflows/binary-build.yml index 6feda01..70da79d 100644 --- a/.github/workflows/binary-build.yml +++ b/.github/workflows/binary-build.yml @@ -102,17 +102,14 @@ jobs: - name: Upload Artifacts to other repo's release run: | - ls -1 *.zip for artifact in $(ls -1 *.zip); do - if [[ -f "$artifact" ]]; then - echo "Uploading $artifact..." - echo "https://uploads.github.com/repos/debridmediamanager/zurg-testing/releases/${{ steps.create_release.outputs.release_id }}/assets?name=$(basename $artifact)" - echo "Content-Type: $(file -b --mime-type $artifact)" - curl -s -X POST \ - -H "Authorization: token ${{ secrets.PAT }}" \ - -H "Accept: application/vnd.github.v3+json" \ - -H "Content-Type: $(file -b --mime-type $artifact)" \ - --data-binary "@$artifact" \ - "https://uploads.github.com/repos/debridmediamanager/zurg-testing/releases/${{ steps.create_release.outputs.release_id }}/assets?name=$(basename $artifact)" - fi + echo "Uploading $artifact..." + echo "https://uploads.github.com/repos/debridmediamanager/zurg-testing/releases/${{ steps.create_release.outputs.release_id }}/assets?name=$(basename $artifact)" + echo "Content-Type: $(file -b --mime-type $artifact)" + curl -s -X POST \ + -H "Authorization: token ${{ secrets.PAT }}" \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Content-Type: $(file -b --mime-type $artifact)" \ + --data-binary "@$artifact" \ + "https://uploads.github.com/repos/debridmediamanager/zurg-testing/releases/${{ steps.create_release.outputs.release_id }}/assets?name=$(basename $artifact)" done