Skip to content

Commit f9272cf

Browse files
committed
Fix NuGet version format and artifact path in CI
Updated dotnet pack to use a period in pre-release versioning for NuGet compatibility. Changed artifact upload path to ./artifacts-linux to match output directory on Ubuntu.
1 parent dbe59f5 commit f9272cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dotnet-core.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ jobs:
4242
run: dotnet test -c Release
4343
- name: Pack
4444
if: matrix.os == 'ubuntu-latest'
45-
run: dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:SymbolPackageFormat=snupkg -p:PackageVersion=1.0.0-pre+$GITHUB_RUN_ID src/$PROJECT_NAME/$PROJECT_NAME.*proj
45+
run: dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:SymbolPackageFormat=snupkg -p:PackageVersion=1.0.0-pre.$GITHUB_RUN_ID src/$PROJECT_NAME/$PROJECT_NAME.*proj
4646
- name: Upload Artifact
4747
if: matrix.os == 'ubuntu-latest'
4848
uses: actions/upload-artifact@v4
4949
with:
5050
name: nupkg
51-
path: ./artifacts/pkg/Release/${{ env.PROJECT_NAME }}.*.nupkg
51+
path: ./artifacts-linux/pkg/Release/${{ env.PROJECT_NAME }}.*.nupkg
5252
prerelease:
5353
needs: build
5454
if: github.ref == 'refs/heads/develop'

0 commit comments

Comments
 (0)