From 7a2da98d66ce94b5bfd7af454152dfaa76d53948 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 10 Jan 2025 10:23:22 +0900 Subject: [PATCH] Refactor asset upload in fetch-release workflow to use a loop for individual file uploads --- .github/workflows/fetch-release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/fetch-release.yml b/.github/workflows/fetch-release.yml index 625205c..14d054f 100644 --- a/.github/workflows/fetch-release.yml +++ b/.github/workflows/fetch-release.yml @@ -62,10 +62,10 @@ jobs: prerelease: false - name: Upload assets to the new release - uses: actions/upload-release-asset@v1 + run: | + for file in artifacts/*; do + echo "Uploading $file..." + gh release upload ${{ env.tag_name }} "$file" --clobber + done env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: artifacts/* - asset_content_type: application/octet-stream \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file