Skip to content

Commit a5041f0

Browse files
Try build first
1 parent 8492fb4 commit a5041f0

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build-and-test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ jobs:
129129
- name: NuGet Install
130130
uses: NuGet/setup-nuget@v1
131131

132+
- name: NuGet Setup Cache
133+
uses: actions/cache@v2
134+
id: nuget-cache
135+
with:
136+
path: ~/.nuget
137+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }}
138+
restore-keys: ${{ runner.os }}-nuget-
139+
132140
- name: DotNet Pack
133141
shell: pwsh
134142
run: ./ci-pack.ps1

ci-pack.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
$repositoryUrl = "https://github.com/$env:GITHUB_REPOSITORY"
22

33
# Building for packing and publishing.
4-
dotnet pack -c Release --output "$PSScriptRoot/artifacts" /p:RepositoryUrl=$repositoryUrl
4+
dotnet build -c Release /p:RepositoryUrl=$repositoryUrl
5+
dotnet pack -c Release --no-build --output "$PSScriptRoot/artifacts" /p:RepositoryUrl=$repositoryUrl

0 commit comments

Comments
 (0)