diff --git a/.github/workflows/generate-and-build-sdks.yml b/.github/workflows/generate-and-build-sdks.yml index 6a58aa6ce83..a0bee3a7fd0 100644 --- a/.github/workflows/generate-and-build-sdks.yml +++ b/.github/workflows/generate-and-build-sdks.yml @@ -129,7 +129,7 @@ jobs: New-Item -Path "." -Name "output" -ItemType "directory" Copy-Item -Verbose "source\README_51.md" -Destination "output" -Force Copy-Item -Verbose "source\LICENSE" -Destination "output" -Force - Copy-Item -Path "source\src\bin\Release\net45\*" -Include ".dll" "output\" + Copy-Item -Path "source\src\bin\Release\net45\*" -Include "*.dll" "output\" Get-ChildItem -Path "source" |` Where-Object { $_.Extension -eq ".ps1" -or $_.Extension -eq ".ps1xml" -or $_.Extension -eq ".psd1" -or $_.Extension -eq ".txt" } |` ForEach-Object -Process { Copy-Item -Verbose $_.FullName -Destination "output" } @@ -199,7 +199,7 @@ jobs: New-Item -Path "." -Name "output" -ItemType "directory" Copy-Item -Verbose "source\README.md" -Destination "output" -Force Copy-Item -Verbose "source\LICENSE" -Destination "output" -Force - Copy-Item -Path "source\src\bin\Release\net${{ matrix.dotnet }}.0\*" -Include ".dll" "output\" + Copy-Item -Path "source\src\bin\Release\net${{ matrix.dotnet }}.0\*" -Include "*.dll" "output\" Get-ChildItem -Path "source" |` Where-Object { $_.Extension -eq ".ps1" -or $_.Extension -eq ".ps1xml" -or $_.Extension -eq ".psd1" -or $_.Extension -eq ".txt" } |` ForEach-Object -Process { Copy-Item -Verbose $_.FullName -Destination "output" } diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 48e7f81a839..cf7ebebd2a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,9 +81,9 @@ jobs: - name: Create release ${{ github.ref_name }} shell: bash run: | - gh release create ${{ github.ref_name }} --repo ${{ github.repository }} --generate-notes dist/* - gh release upload ${{ github.ref_name }} --repo ${{ github.repository }} PowerShell-SDK-5.x-prerelease-unsigned.zip - gh release upload ${{ github.ref_name }} --repo ${{ github.repository }} PowerShell-SDK-7.x-prerelease-unsigned.zip + gh release create ${{ github.ref_name }} --repo ${{ github.repository }} --generate-notes dist/* \ + PowerShell-SDK-5.x-prerelease-unsigned.zip \ + PowerShell-SDK-7.x-prerelease-unsigned.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}