From b6cf2915018737490734fcdfa534f855e7e9e010 Mon Sep 17 00:00:00 2001 From: MacRimi <123239993+MacRimi@users.noreply.github.com> Date: Fri, 14 Feb 2025 10:29:51 +0100 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cac55dd..79ad8e6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,31 +20,38 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Node uses: actions/setup-node@v4 with: node-version: "20" cache: 'npm' - cache-dependency-path: web/package-lock.json + cache-dependency-path: '**/package-lock.json' + - name: Setup Pages uses: actions/configure-pages@v4 + - name: Install dependencies run: | cd web - npm ci + npm ci --prefer-offline --no-audit + - name: Build with Next.js run: | cd web npm run build + - name: Static HTML export with Next.js run: | cd web npm run export + - name: Copy guides and changelog run: | mkdir -p web/out/guides cp guides/*.md web/out/guides/ cp CHANGELOG.md web/out/ + - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: