Account for restructure of solution files in workflows

This commit is contained in:
Brett Hazen 2025-03-06 14:26:43 -06:00
parent 757459e54f
commit aba2348e01
3 changed files with 7 additions and 7 deletions

View file

@ -39,7 +39,7 @@ void GenerateIdentityServerWorkflow(Product product)
.RunEitherOnBranchOrAsPR()
.Name("Build")
.RunsOn(GitHubHostedRunners.UbuntuLatest)
.Defaults().Run("bash", ".")
.Defaults().Run("bash", product.Name)
.Job;
job.Permissions(
@ -87,7 +87,7 @@ void GenerateIdentityServerReleaseWorkflow(Product product)
.Name("Tag and Pack")
.RunsOn(GitHubHostedRunners.UbuntuLatest)
.Permissions(contents: Permission.Write, packages: Permission.Write)
.Defaults().Run("bash", ".").Job;
.Defaults().Run("bash", product.Name).Job;
job.Step()
.ActionsCheckout();
@ -440,7 +440,7 @@ public static class StepExtensions
public static void StepUploadArtifacts(this Job job, string componentName, bool uploadAlways = false)
{
var path = $"artifacts/*.nupkg";
var path = $"{componentName}/artifacts/*.nupkg";
var step = job.Step()
.Name("Upload Artifacts");

View file

@ -29,7 +29,7 @@ jobs:
defaults:
run:
shell: bash
working-directory: .
working-directory: identity-server
timeout-minutes: 15
steps:
- name: Checkout
@ -77,6 +77,6 @@ jobs:
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
with:
name: artifacts
path: artifacts/*.nupkg
path: identity-server/artifacts/*.nupkg
overwrite: true
retention-days: 15

View file

@ -32,7 +32,7 @@ jobs:
defaults:
run:
shell: bash
working-directory: .
working-directory: identity-server
steps:
- name: Checkout
uses: actions/checkout@v4
@ -83,7 +83,7 @@ jobs:
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
with:
name: artifacts
path: artifacts/*.nupkg
path: identity-server/artifacts/*.nupkg
overwrite: true
retention-days: 15
publish: