From a00aba41f0aa9b0420df8ee4a1917933ae8aa779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Sailly?= <75009579+LJ5O@users.noreply.github.com> Date: Wed, 26 Mar 2025 22:12:05 +0100 Subject: [PATCH] Fixed deprecated deploy script --- .github/workflows/pages.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c3cd5dd..e4fb9a5 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,5 +1,4 @@ # Simple workflow for deploying static content to GitHub Pages -# From https://vitejs.dev/guide/static-deploy.html name: Deploy static content to Pages on: @@ -32,21 +31,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: 'npm' - name: Install dependencies - run: npm install + run: npm ci - name: Build run: npm run build - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: - # Upload dist repository + # Upload dist folder path: './dist' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4