Skip to content

Commit f6017e5

Browse files
committed
Update ci.yml
1 parent c5d23cc commit f6017e5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ on:
66
- "v*"
77

88
env:
9-
PROJECT_PATH: "ValueMapperCore/ValueMapperCore.csproj"
10-
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output
9+
SOLUTION_FILE: ValueMapper/ValueMapper.sln
10+
PROJECT_PATH: "ValueMapper/ValueMapperCore/ValueMapper.csproj"
11+
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}/output
1112
NUGET_SOURCE_URL: "https://api.nuget.org/v3/index.json"
1213

1314
jobs:
@@ -24,10 +25,10 @@ jobs:
2425
dotnet-version: "8.0.x"
2526

2627
- name: "Restore packages"
27-
run: dotnet restore ${{ env.PROJECT_PATH }}
28+
run: dotnet restore ${{ env.SOLUTION_FILE }}
2829

2930
- name: "Build project"
30-
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release
31+
run: dotnet build ${{ env.SOLUTION_FILE }} --no-restore --configuration Release
3132

3233
- name: "Get Version"
3334
id: version
@@ -37,4 +38,4 @@ jobs:
3738
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.outputs.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
3839

3940
- name: "Push package"
40-
run: dotnet nuget push "${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg" -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL }}
41+
run: dotnet nuget push "${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg" -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL }}

0 commit comments

Comments
 (0)