diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba7d169..648ea8f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - name: Checkout code @@ -35,7 +35,7 @@ jobs: run: | $OutputDir = "nuget-packages" New-Item -ItemType Directory -Force -Path $OutputDir - Get-ChildItem -Path . -Recurse -Filter *.nupkg | Copy-Item -Destination $OutputDir + Get-ChildItem -Path . -Recurse -Include *.nupkg,*.snupkg | Copy-Item -Destination $OutputDir - name: Upload NuGet packages as artifacts uses: actions/upload-artifact@v4 @@ -71,3 +71,4 @@ jobs: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} run: | dotnet nuget push ./nuget-packages/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json + dotnet nuget push ./nuget-packages/*.snupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json diff --git a/Directory.Build.props b/Directory.Build.props index a6f6745..b74a2ec 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -21,6 +21,8 @@ http server lightweight self-contained sse iot desktop tools diagnostics true snupkg + true + true enable diff --git a/version.json b/version.json index 140ee15..f424a74 100644 --- a/version.json +++ b/version.json @@ -9,9 +9,9 @@ "^refs/heads/release/\\d+(?:\\.\\d+)?$" ], "cloudBuild": { - "setAllVariables": true, + "setAllVariables": false, "buildNumber": { - "enabled": true + "enabled": false } }, "release": {