diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 1a12537..51e9767 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -9,7 +9,7 @@ on: types: [ published ] env: - artifacts: > + artifacts: | me7sum.exe ME7Check.exe README.md @@ -35,8 +35,13 @@ jobs: path: ${{ env.artifacts }} - name: Upload windows artifact to release if: github.event_name == 'release' && github.event.action == 'published' + shell: pwsh run: | - 7z a -tzip me7sum-${{ github.ref_name }}-win.zip ${{ env.artifacts }} + # convert newline separated string to array + $artifacts = "${{ env.artifacts }}" + $ARTIFACTS = $artifacts -split "`r?`n" + echo "@ARTIFACTS" + 7z a -tzip me7sum-${{ github.ref_name }}-win.zip @ARTIFACTS gh release upload --clobber ${{ github.ref_name }} me7sum-${{ github.ref_name }}-win.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}