From e326152e46cc9e5c5cc402a0ab7a497ba89032bb Mon Sep 17 00:00:00 2001 From: Amir Panahandeh Date: Tue, 2 Jan 2024 00:31:52 +0330 Subject: [PATCH] Update website.yml --- .github/workflows/website.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 59357a5a..83b0a41a 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -33,7 +33,7 @@ jobs: cd packages/fleather/example flutter build web --no-tree-shake-icons - name: Archive the demo build - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: demo_web_build path: packages/fleather/example/build/web @@ -61,18 +61,17 @@ jobs: - name: Install Node.js dependencies run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Download demo web build - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: demo_web_build path: docs/content/en/demo - - run: ls - - run: pwd - name: Build with Hugo env: # For maximum backward compatibility with Hugo modules HUGO_ENVIRONMENT: production HUGO_ENV: production run: | + cd docs hugo \ --gc \ --minify \ @@ -80,7 +79,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: ./public + path: docs/public deploy_website: environment: