Skip to content

Commit

Permalink
test publish
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Dec 9, 2023
1 parent abae184 commit 6501937
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions build/Build.CI.GitHubActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
]
Expand Down
1 change: 0 additions & 1 deletion build/Build.Publish.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6501937

Please sign in to comment.