diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ca84675..0b82db88 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,8 +98,10 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v3 with: - name: signed-packages + name: packages-final path: "*.nupkg" - name: Publish Dev NuGet Package run: | - nuget push *.nupkg -ApiKey ${{ secrets.GITHUB_TOKEN }} -Source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -SkipDuplicate \ No newline at end of file + export NUGET_VERSION=$(./nbgv get-version -f json | python3 -c "import sys, json; print(json.load(sys.stdin)['NuGetPackageVersion'])") + nuget push csq.${NUGET_VERSION}.nupkg -ApiKey ${{ secrets.GITHUB_TOKEN }} -Source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -SkipDuplicate + nuget push Clowd.Squirrel.${NUGET_VERSION}.nupkg -ApiKey ${{ secrets.GITHUB_TOKEN }} -Source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -SkipDuplicate \ No newline at end of file diff --git a/build.ps1 b/build.ps1 index b424d7e3..391f03d3 100644 --- a/build.ps1 +++ b/build.ps1 @@ -47,6 +47,7 @@ dotnet publish -v minimal --no-build -c Release --self-contained "$PSScriptRoot\ Write-Host "Copying Tools" -ForegroundColor Magenta New-Item -Path "squirrel" -Name "tools" -ItemType "directory" Copy-Item -Path "$ToolsDir\*" -Destination "squirrel\tools" -Recurse +Remove-Item "squirrel\tools\*.xml" Write-Host "Re-assembling Packages" -ForegroundColor Magenta seven a "csq.$version.nupkg" -tzip -mx9 "$PSScriptRoot\build\Release\csq\*"