From cd3757b4b33ea77806c4e533a01f09aaf27fa7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20W=C3=B3jcik?= <1711174+lwojcik@users.noreply.github.com> Date: Sun, 3 Mar 2024 14:02:17 +0100 Subject: [PATCH] Minor improvements to GH Pages workflow (#107) --- .github/workflows/build-to-gh-pages.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-to-gh-pages.yml b/.github/workflows/build-to-gh-pages.yml index 317c094..e53ff36 100644 --- a/.github/workflows/build-to-gh-pages.yml +++ b/.github/workflows/build-to-gh-pages.yml @@ -18,7 +18,7 @@ jobs: - name: Install dependencies & build run: | npm install - npm run build + npm run build-gh-pages - name: Deploy uses: peaceiris/actions-gh-pages@v3 diff --git a/package.json b/package.json index 54f845b..c9c9896 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "prebuild": "npm run clean", "build:eleventy": "cross-env ELEVENTY_ENV=production npx @11ty/eleventy --quiet", + "build-gh-pages": "npm run build:eleventy -- --pathprefix=/eleventy-template-bliss/", "build": "npm-run-all build:*", "postbuild": "npm run minify:js", "clean": "rimraf _site",