Skip to content

Commit 63da288

Browse files
committed
fix(ci): correct syntax for versioning in build and pack steps
1 parent 36004e8 commit 63da288

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish-preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ jobs:
7474
run: dotnet restore ${{ inputs.solution }}
7575

7676
- name: Build
77-
run: dotnet build ${{ inputs.solution }} --configuration Release --no-restore /p:Version=${{ steps.version.outputs.package_version }} /p:InformationalVersion=${{ steps.version.outputs.package_version }}
77+
run: dotnet build ${{ inputs.solution }} --configuration Release --no-restore /p:Version="${{ steps.version.outputs.package_version }}" /p:InformationalVersion="${{ steps.version.outputs.package_version }}"
7878

7979
- name: Test
80-
if: inputs.hasTests == true
81-
run: dotnet test --solution ${{ inputs.solution }} --configuration Release --no-restore
80+
if: inputs.hasTests == true
81+
run: dotnet test --solution ${{ inputs.solution }} --configuration Release --no-restore
8282

8383
- name: Pack
84-
run: dotnet pack ${{ inputs.solution }} --configuration Release --no-build -o artifacts /p:Version=${{ steps.version.outputs.package_version }} /p:InformationalVersion=${{ steps.version.outputs.package_version }}
84+
run: dotnet pack ${{ inputs.solution }} --configuration Release --no-build -o artifacts /p:Version="${{ steps.version.outputs.package_version }}" /p:InformationalVersion="${{ steps.version.outputs.package_version }}"
8585

8686
- name: Publish to NuGet
8787
run: dotnet nuget push artifacts/**/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)