Skip to content

Commit

Permalink
Only publish artifacts on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Nov 19, 2024
1 parent ab3847c commit 00cd693
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions build/Build.CI.GitHubActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
1 change: 1 addition & 0 deletions build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

<ItemGroup>
<PackageReference Include="Nuke.Common" Version="8.1.4" />
<PackageReference Include="System.Formats.Asn1" Version="8.0.1" />
</ItemGroup>

</Project>

0 comments on commit 00cd693

Please sign in to comment.