Skip to content

Commit f02815b

Browse files
author
Petr Sramek
committed
fix fix of fix?
1 parent d000795 commit f02815b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/actions/build/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -60,7 +61,7 @@ runs:
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' }}

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)