From d5d3a0c801e4fcc685b26ad30ee895745f0f3f3d Mon Sep 17 00:00:00 2001 From: Adrian Clark Date: Mon, 1 Jan 2024 22:13:49 +1000 Subject: [PATCH] Update GitHub Actions --- .github/workflows/_build-docs.yml | 4 ++-- .github/workflows/_build.yml | 6 +++--- .github/workflows/_deploy-docs.yml | 6 +++--- .github/workflows/ci.yml | 4 +++- .github/workflows/create-release.yml | 4 ++-- .github/workflows/publish-release.yml | 4 ++-- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/_build-docs.yml b/.github/workflows/_build-docs.yml index be782f4..8a00863 100644 --- a/.github/workflows/_build-docs.yml +++ b/.github/workflows/_build-docs.yml @@ -14,7 +14,7 @@ jobs: steps: - name: 'Checkout Code' - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required for MinVer to work properly @@ -30,7 +30,7 @@ jobs: shell: pwsh - name: 'Upload Site Artifacts' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: 'Documentation Site' path: 'doc/docfx_project/_site/' diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.yml index d12eb17..47eba91 100644 --- a/.github/workflows/_build.yml +++ b/.github/workflows/_build.yml @@ -14,7 +14,7 @@ jobs: steps: - name: 'Checkout Code' - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 # Required for MinVer to work properly @@ -63,13 +63,13 @@ jobs: run: Get-ChildItem -Path src\*\bin\Release\* -Recurse -Include *.nupkg | Copy-Item -Container:$false - name: 'Upload Artifacts' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: NuGet Packages path: Aydsko.*.nupkg - name: 'Upload Release Notes' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Release Notes path: 'src\Aydsko.iRacingData\Package Release Notes.txt' diff --git a/.github/workflows/_deploy-docs.yml b/.github/workflows/_deploy-docs.yml index 750558b..15089c0 100644 --- a/.github/workflows/_deploy-docs.yml +++ b/.github/workflows/_deploy-docs.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Download Documentation Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: 'Documentation Site' path: '_site' @@ -31,10 +31,10 @@ jobs: uses: actions/configure-pages@v3 - name: Upload GitHub Pages Artifacts - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v2 with: path: '_site' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 467c6e8..a3af8f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Setup .NET SDK uses: actions/setup-dotnet@v3 @@ -40,6 +40,8 @@ jobs: - name: Delete Old Packages uses: smartsquaregmbh/delete-old-packages@v0.6.0 with: + user: AdrianJSClark + type: nuget keep: 5 dry-run: true names: | diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index bd82603..d59377c 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -28,10 +28,10 @@ jobs: steps: - name: 'Checkout Code' - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Setup .NET SDK uses: actions/setup-dotnet@v3 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 7aeb333..f3f2303 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -19,7 +19,7 @@ jobs: - name: 'Check Tag Value' run: echo ${{ github.event.release.tag_name }} - - uses: robinraju/release-downloader@v1.7 + - uses: robinraju/release-downloader@v1.8 name: 'Download Package from Release' with: repository: 'AdrianJSClark/aydsko-iracingdata' @@ -34,7 +34,7 @@ jobs: run: Expand-Archive -Path DocumentationSite.zip -DestinationPath ./_site - name: 'Upload Site Artifacts' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: 'Documentation Site' path: '_site'