From db717cea75dd2152a0527a492307b2699d3a0ade Mon Sep 17 00:00:00 2001 From: Kyle Burrows Date: Sat, 15 Mar 2025 17:57:47 -0400 Subject: [PATCH] adjust how packages are uploaded as artifacts --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80b11a5..de36bd4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,8 +9,6 @@ env: SLN_PATH: src/ShellRunner.sln TEST_PATH: src/TestApp/bin/Release/net8.0/TestApp.dll PROJECT_PATH: src/ShellRunner/ShellRunner.csproj - PRE_RELEASE_ARTIFACTS: ./**/ShellRunner.$BUILD_VERSION-alpha.nupkg - RELEASE_ARTIFACTS: ./**/ShellRunner.$BUILD_VERSION.nupkg jobs: build: @@ -41,6 +39,7 @@ jobs: --no-restore --no-build -p:PackageVersion=$BUILD_VERSION-alpha + -o alpha-packages - name: Pack-Release run: dotnet pack $PROJECT_PATH @@ -48,18 +47,21 @@ jobs: --no-restore --no-build -p:PackageVersion=$BUILD_VERSION + -o packages - name: Upload ShellRunner PreRelease Artifacts uses: actions/upload-artifact@v4.6.1 with: name: PreReleaseArtifacts - path: $PRE_RELEASE_ARTIFACTS + path: alpha-packages/*.nupkg + if-no-files-found: error - name: Upload ShellRunner Release Artifacts uses: actions/upload-artifact@v4.6.1 with: name: ReleaseArtifacts - path: $RELEASE_ARTIFACTS + path: packages/*.nupkg + if-no-files-found: error pre-release: needs: build