diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 8ca67bc..31370d0 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -44,7 +44,8 @@ jobs: - name: Upload Release Assets run: | - TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') - gh release upload $TAG src/bin/*.dll + $TAG=($env:GITHUB_REF -replace 'refs/tags/', '') + $dllPath = Get-ChildItem -Path src/bin -Filter *.dll -File | Select-Object -ExpandProperty FullName + gh release upload $TAG $dllPath env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9b6613..36fb34a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: run: dotnet --version - name: Set VERSION variable from tag - run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV + run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $env:GITHUB_ENV - name: Download References shell: pwsh @@ -47,7 +47,8 @@ jobs: - name: Upload Release Assets run: | - TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') - gh release upload $TAG src/bin/*.dll + $TAG=($env:GITHUB_REF -replace 'refs/tags/', '') + $dllPath = Get-ChildItem -Path src/bin -Filter *.dll -File | Select-Object -ExpandProperty FullName + gh release upload $TAG $dllPath env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}