From a349142b53a87ffc601b7be235c0af84ea05cc22 Mon Sep 17 00:00:00 2001 From: Bruce Markham <219281+brucificus@users.noreply.github.com> Date: Fri, 25 Aug 2023 21:06:34 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Updates=20Publish=20Workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ef07ba..e167b71 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,6 +70,23 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 + - name: "Cache: Nested PSGallery Modules" + id: cacher + uses: actions/cache@v3 + with: + path: ./lib + key: lib-PSGallery-${{ hashFiles('./NuGet.PSGallery.config', './packages.PSGallery.config') }} + - name: Install NuGet + uses: nuget/setup-nuget@v1.2.0 + if: steps.cacher.outputs.cache-hit != 'true' + with: + nuget-version: '6.x' + - name: Restore Nested PSGallery Modules + if: steps.cacher.outputs.cache-hit != 'true' + shell: pwsh + run: | + Set-PSRepository PSGallery -InstallationPolicy Trusted + ./build/restore.ps1 - name: Download PSGallery package uses: actions/download-artifact@v2 with: @@ -90,6 +107,23 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 + - name: "Cache: Nested PSGallery Modules" + id: cacher + uses: actions/cache@v3 + with: + path: ./lib + key: lib-PSGallery-${{ hashFiles('./NuGet.PSGallery.config', './packages.PSGallery.config') }} + - name: Install NuGet + uses: nuget/setup-nuget@v1.2.0 + if: steps.cacher.outputs.cache-hit != 'true' + with: + nuget-version: '6.x' + - name: Restore Nested PSGallery Modules + if: steps.cacher.outputs.cache-hit != 'true' + shell: pwsh + run: | + Set-PSRepository PSGallery -InstallationPolicy Trusted + ./build/restore.ps1 - name: Download version.json uses: actions/download-artifact@v2 with: