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:
34
34
required : false
35
35
default : ' true'
36
36
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 '
38
38
required : false
39
39
default : |
40
- **/bin/*
41
- **/obj/*
40
+ '**/bin/*'
41
+ '**/obj/*'
42
+ '~/.nuget/packages'
42
43
build-artifacts-name :
43
44
description : ' Upload build artifacts, Default: build'
44
45
required : false
60
61
61
62
- name : ' Build with .NET CLI'
62
63
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 }}
64
65
65
66
- name : ' Upload build artifacts'
66
67
if : ${{ inputs.upload-build-artifacts == 'true' }}
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ jobs:
145
145
- name : Pack with .NET
146
146
run : |
147
147
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/
149
149
- name : Upload Package
150
150
uses : actions/upload-artifact@v4
151
151
with :
You can’t perform that action at this time.
0 commit comments