From eff6792b5af1df44b54e88766e80869f38e517d6 Mon Sep 17 00:00:00 2001 From: Mukilan Thiyagarajan Date: Fri, 31 Jan 2025 12:33:46 +0530 Subject: [PATCH] Upgrade to latest actions for deploying the site upload-pages-artifact@v2 uses v3 of upload-artifact which is now deprecated, causing the build to fail with the message ``` This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v3`. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ ``` This patch upgrades the workflow to use the latest version of `upload-pages-artifact`. The related `deploy-pages` action also needs to be upgrade as per the release notes: https://github.com/actions/upload-pages-artifact/releases/tag/v3.0.0 Signed-off-by: Mukilan Thiyagarajan --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20e2fc15..1dafdde8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,9 +39,9 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: 'site' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4