File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,12 @@ inputs:
3434 required : false
3535 default : ' true'
3636 build-artifacts-glob-pattern :
37- description : ' Search pattern for build artifacts. Default: **/bin/*, **/obj/*'
37+ description : ' Search pattern for build artifacts. Default: **/bin/*, **/obj/*, ~/.nuget/packages '
3838 required : false
3939 default : |
40- **/bin/*
41- **/obj/*
40+ '**/bin/*'
41+ '**/obj/*'
42+ '~/.nuget/packages'
4243 build-artifacts-name :
4344 description : ' Upload build artifacts, Default: build'
4445 required : false
6061
6162 - name : ' Build with .NET CLI'
6263 shell : bash
63- run : dotnet build ${{ inputs.search-pattern }} --configuration ${{ inputs.build-configuration }} /p:Platform="${{ inputs.build-platform }}" /p:Version=${{ inputs.assembly-version }} /p:AssemblyInformationalVersion=${{ inputs.assembly--informational-version }} /p:FileVersion=${{ inputs.assembly-file-version }}
64+ run : dotnet build ${{ inputs.search-pattern }} --no-restore -- configuration ${{ inputs.build-configuration }} /p:Platform="${{ inputs.build-platform }}" /p:Version=${{ inputs.assembly-version }} /p:AssemblyInformationalVersion=${{ inputs.assembly--informational-version }} /p:FileVersion=${{ inputs.assembly-file-version }}
6465
6566 - name : ' Upload build artifacts'
6667 if : ${{ inputs.upload-build-artifacts == 'true' }}
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ jobs:
145145 - name : Pack with .NET
146146 run : |
147147 dotnet nuget locals --clear all
148- dotnet pack ${{ vars.SRC_DEFAULT_GLOB_PATTERN }} --no-build --configuration ${{ env.build-configuration }} /p:Platform="${{ env.build-platform }}" /p:PackageVersion=${{ env.PACKAGE_VERSION }} /p:Version=${{ env.ASSEMBLY_VERSION }} /p:AssemblyInformationalVersion=${{ env.ASSEMBLY_INFORMATIONAL_VERSION }} /p:FileVersion=${{ env.FILE_VERSION }} --output ${{ runner.temp }}/packages/
148+ dotnet pack ${{ vars.SRC_DEFAULT_GLOB_PATTERN }} --no-build --no-restore --configuration ${{ env.build-configuration }} /p:Platform="${{ env.build-platform }}" /p:PackageVersion=${{ env.PACKAGE_VERSION }} /p:Version=${{ env.ASSEMBLY_VERSION }} /p:AssemblyInformationalVersion=${{ env.ASSEMBLY_INFORMATIONAL_VERSION }} /p:FileVersion=${{ env.FILE_VERSION }} --output ${{ runner.temp }}/packages/
149149 - name : Upload Package
150150 uses : actions/upload-artifact@v4
151151 with :
You can’t perform that action at this time.
0 commit comments