From f244e3d54e2d5ad42a3a69f9bbb00dfdef3f2a8b Mon Sep 17 00:00:00 2001 From: Rick Butterfield Date: Fri, 15 Mar 2024 14:34:10 +0000 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93e73d1..66c5c31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Cache .NET packages + uses: actions/cache@v2 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-dotnet-${{ hashFiles('**/*.csproj') }} + restore-keys: | + ${{ runner.os }}-dotnet- + - name: Setup .NET uses: actions/setup-dotnet@v2 with: @@ -26,4 +34,4 @@ jobs: run: dotnet build src\Umbraco.Community.BlockPreview\Umbraco.Community.BlockPreview.csproj --configuration Release - name: Push to NuGet - run: dotnet nuget push **\*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json \ No newline at end of file + run: dotnet nuget push **\*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json