From 0d0849082b7ddce366ca67f47141bec9743fd0e6 Mon Sep 17 00:00:00 2001 From: Denis Davydkov Date: Thu, 26 Oct 2023 05:06:48 +0200 Subject: [PATCH] handle custom base --- .github/workflows/pages.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index dd89a62..bfd8ef1 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -33,11 +33,14 @@ jobs: with: node-version: "20" - name: Setup Pages + id: pages uses: actions/configure-pages@v3 - name: Install dependencies run: npm install - name: Build - run: npm run build + run: npm run build -- --base "${{ steps.pages.outputs.base_path }}" + - name: Custom 404 page + run: cp ./dist/index.html ./dist/404.html - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: