From 7d75e7042199f78a4c82dfb8ed5322d3e376e86d Mon Sep 17 00:00:00 2001 From: unset Date: Sat, 23 Nov 2024 18:32:14 +0100 Subject: [PATCH] so it does support globs. --- .github/workflows/add_build_to_release.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/add_build_to_release.yml b/.github/workflows/add_build_to_release.yml index 5f3cebc..2756474 100644 --- a/.github/workflows/add_build_to_release.yml +++ b/.github/workflows/add_build_to_release.yml @@ -32,21 +32,17 @@ jobs: dotnet publish ${{env.BUILD_PROJECT}} -c Release --self-contained -r "$arch" fname="${{github.workspace}}/builds/${arch}_${{env.BUILD_PROJECT}}.zip" - produced_files="$(echo -e "$fname\n$produced_files")" - cd "${{env.BUILD_PROJECT}}/bin/Release/net6.0/$arch" zip $fname * cd - echo "created $fname" done - echo "created files: $produced_files" - echo "PRODUCED_FILES=\"$produced_files\"" >> ${{github.env}} - name: upload release assets uses: softprops/action-gh-release@v2 with: tag_name: ${{github.event.release.tag_name}} - files: "${{env.PRODUCED_FILES}}" + files: "${{github.workspace}}/builds/*" env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}