Skip to content

Commit 0d7ef07

Browse files
author
Petr Sramek
committed
updated build action
1 parent 85d37be commit 0d7ef07

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/actions/build/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ runs:
5353
uses: actions/setup-dotnet@v4
5454
with:
5555
dotnet-version: ${{ inputs.dotnet_sdk_version }}
56-
56+
cache: true
57+
cache-dependency-path: "**/packages.lock.json"
58+
59+
- name: 'Restore packages with .NET CLI'
60+
shell: bash
61+
run: dotnet restore ${{ inputs.search-pattern }}
62+
5763
- name: 'Build with .NET CLI'
5864
shell: bash
5965
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 }}

0 commit comments

Comments
 (0)