File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -94,18 +94,15 @@ jobs:
9494 echo "target=Vulthil.SharedKernel.slnx" >> $GITHUB_OUTPUT
9595 fi
9696 - name : Build
97- run : dotnet build ${{ steps.scope.outputs.target }} --configuration Release
97+ run : dotnet build ${{ steps.scope.outputs.target }} --configuration Release --no-restore
9898 - name : Test
9999 run : dotnet test ${{ steps.scope.outputs.target }} --configuration Release --no-build
100100 - name : Pack
101101 run : |
102102 VERSION="${{ steps.version.outputs.version }}"
103103 if [ "${{ github.event_name }}" = "pull_request" ]; then
104104 PREVIEW_NUMBER=$(git rev-list --count origin/main..HEAD)
105- PR_NUMBER="${{ github.event.pull_request.number }}"
106- VERSION="${VERSION}-preview.pr${PR_NUMBER}.${PREVIEW_NUMBER}"
107- elif [ "${{ github.ref }}" != "refs/heads/main" ]; then
108- VERSION="${VERSION}-dev.${{ github.run_number }}"
105+ VERSION="${VERSION}-preview.${PREVIEW_NUMBER}"
109106 fi
110107 echo "::notice::Packing with version: $VERSION"
111108
@@ -127,7 +124,7 @@ jobs:
127124
128125 while IFS= read -r proj; do
129126 [ -z "$proj" ] && continue
130- dotnet pack "$proj" --configuration Release --no-build - o ./nupkgs -p:PackageVersion=$VERSION
127+ dotnet pack "$proj" --configuration Release -o ./nupkgs -p:DisableNbgv=true -p: PackageVersion=" $VERSION"
131128 done <<< "$PROJECTS"
132129 - name : Check if nupkgs exist
133130 id : check_nupkgs
You can’t perform that action at this time.
0 commit comments