diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f062ef79d..746e9994e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,6 +48,7 @@ jobs: MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }} - name: 'Publish: artifacts' uses: actions/upload-artifact@v4 + if: runner.os == 'Windows' with: name: artifacts path: artifacts @@ -70,6 +71,7 @@ jobs: MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }} - name: 'Publish: artifacts' uses: actions/upload-artifact@v4 + if: runner.os == 'Windows' with: name: artifacts path: artifacts diff --git a/build/Build.CI.GitHubActions.cs b/build/Build.CI.GitHubActions.cs index 8591806a3..5c509b0f7 100644 --- a/build/Build.CI.GitHubActions.cs +++ b/build/Build.CI.GitHubActions.cs @@ -21,6 +21,7 @@ OnPushIncludePaths = ["**/*.*"], OnPushExcludePaths = ["**/*.md"], PublishArtifacts = true, + PublishCondition = "runner.os == 'Windows'", InvokedTargets = [nameof(Compile), nameof(Test), nameof(Pack), nameof(Publish)], ImportSecrets = ["NUGET_API_KEY", "MYGET_API_KEY"], CacheKeyFiles = ["global.json", "src/**/*.csproj", "src/**/package.json"]) diff --git a/build/_build.csproj b/build/_build.csproj index d8b48b5fd..48b0b7dfe 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -22,6 +22,7 @@ +