From 650193779927b8543493c624c54a8a2a29c303d8 Mon Sep 17 00:00:00 2001 From: Marko Lahma Date: Sat, 9 Dec 2023 19:00:58 +0200 Subject: [PATCH] test publish --- .github/workflows/pr.yml | 19 +++++++++++++++++-- build/Build.CI.GitHubActions.cs | 4 ++-- build/Build.Publish.cs | 1 - 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3cf135f40b..a53e7d3f8d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -42,5 +42,20 @@ jobs: echo "Adding GNU tar to PATH" echo C:\Program Files\Git\usr\bin>>"%GITHUB_PATH%" - uses: actions/checkout@v3 - - name: 'Run: InstallDependencies, Compile, Test, Pack' - run: ./build.cmd InstallDependencies Compile Test Pack + - name: 'Run: InstallDependencies, Compile, Test, Pack, Publish' + run: ./build.cmd InstallDependencies Compile Test Pack Publish + - name: 'Publish: NSwag.zip' + uses: actions/upload-artifact@v3 + with: + name: NSwag.zip + path: artifacts/NSwag.zip + - name: 'Publish: NSwag.Npm.zip' + uses: actions/upload-artifact@v3 + with: + name: NSwag.Npm.zip + path: artifacts/NSwag.Npm.zip + - name: 'Publish: NSwagStudio.msi' + uses: actions/upload-artifact@v3 + with: + name: NSwagStudio.msi + path: artifacts/NSwagStudio.msi diff --git a/build/Build.CI.GitHubActions.cs b/build/Build.CI.GitHubActions.cs index a1ba73863e..148d44d956 100644 --- a/build/Build.CI.GitHubActions.cs +++ b/build/Build.CI.GitHubActions.cs @@ -12,8 +12,8 @@ OnPullRequestBranches = new[] { "master", "main" }, OnPullRequestIncludePaths = new[] { "**/*.*" }, OnPullRequestExcludePaths = new[] { "**/*.md" }, - PublishArtifacts = false, - InvokedTargets = new[] { nameof(InstallDependencies), nameof(Compile), nameof(Test), nameof(Pack) }, + PublishArtifacts = true, + InvokedTargets = new[] { nameof(InstallDependencies), nameof(Compile), nameof(Test), nameof(Pack), nameof(Publish) }, CacheKeyFiles = new string[0], JobConcurrencyCancelInProgress = true), ] diff --git a/build/Build.Publish.cs b/build/Build.Publish.cs index d297dc22f9..3123e4e7bf 100644 --- a/build/Build.Publish.cs +++ b/build/Build.Publish.cs @@ -31,7 +31,6 @@ public partial class Build Target Publish => _ => _ .OnlyWhenDynamic(() => IsRunningOnWindows && (GitRepository.IsOnMainOrMasterBranch() || IsTaggedBuild)) .DependsOn(Pack) - .Requires(() => NuGetApiKey, () => MyGetApiKey, () => ChocoApiKey, () => NpmAuthToken) .Executes(() => { if (IsTaggedBuild)