Skip to content

Commit 69710d8

Browse files
committed
Restrict artifact publishing to Linux runners in workflows and Build.cs.
1 parent 1ccea1b commit 69710d8

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/integration.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
- name: 'Publish: coverage_report'
4444
uses: actions/upload-artifact@v4
45+
if: runner.os == 'Linux'
4546
with:
4647
name: coverage_report
4748
path: .tests/coverage_report
@@ -65,6 +66,7 @@ jobs:
6566
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6667
- name: 'Publish: coverage_report'
6768
uses: actions/upload-artifact@v4
69+
if: runner.os == 'Linux'
6870
with:
6971
name: coverage_report
7072
path: .tests/coverage_report
@@ -88,6 +90,7 @@ jobs:
8890
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8991
- name: 'Publish: coverage_report'
9092
uses: actions/upload-artifact@v4
93+
if: runner.os == 'Linux'
9194
with:
9295
name: coverage_report
9396
path: .tests/coverage_report

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
- name: 'Publish: coverage_report'
4444
uses: actions/upload-artifact@v4
45+
if: runner.os == 'Linux'
4546
with:
4647
name: coverage_report
4748
path: .tests/coverage_report
@@ -65,6 +66,7 @@ jobs:
6566
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6667
- name: 'Publish: coverage_report'
6768
uses: actions/upload-artifact@v4
69+
if: runner.os == 'Linux'
6870
with:
6971
name: coverage_report
7072
path: .tests/coverage_report
@@ -88,6 +90,7 @@ jobs:
8890
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8991
- name: 'Publish: coverage_report'
9092
uses: actions/upload-artifact@v4
93+
if: runner.os == 'Linux'
9194
with:
9295
name: coverage_report
9396
path: .tests/coverage_report

build/Build.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
InvokedTargets = [NukeTargets.DeployNuGet],
2525
EnableGitHubToken = true,
2626
PublishArtifacts = true,
27+
PublishCondition = "runner.os == 'Linux'",
2728
FetchDepth = 0
2829
)]
2930
[GitHubActions("pull-request",
@@ -41,6 +42,7 @@
4142
InvokedTargets = [NukeTargets.DeployNuGet],
4243
EnableGitHubToken = true,
4344
PublishArtifacts = true,
45+
PublishCondition = "runner.os == 'Linux'",
4446
FetchDepth = 0
4547
)]
4648
[GitHubActions(ReleaseWorkflow, GitHubActionsImage.UbuntuLatest,

0 commit comments

Comments
 (0)