From bfd99ad8f36f0c24dfe4e660b1ca6a6fcb501436 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Fri, 30 Sep 2022 11:53:25 -0400 Subject: [PATCH] Add path prefix to website --- .../{website-backup.yml => website-publish.yml} | 0 .github/workflows/website.yml | 16 ---------------- website/package.json | 2 +- 3 files changed, 1 insertion(+), 17 deletions(-) rename .github/workflows/{website-backup.yml => website-publish.yml} (100%) delete mode 100644 .github/workflows/website.yml diff --git a/.github/workflows/website-backup.yml b/.github/workflows/website-publish.yml similarity index 100% rename from .github/workflows/website-backup.yml rename to .github/workflows/website-publish.yml diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml deleted file mode 100644 index 553b109a..00000000 --- a/.github/workflows/website.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Website Publish - -on: - push: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: enriikke/gatsby-gh-pages-action@v2 - with: - access-token: ${{ secrets.ACCESS_TOKEN }} - working-dir: website \ No newline at end of file diff --git a/website/package.json b/website/package.json index a19c832a..aeafdea8 100644 --- a/website/package.json +++ b/website/package.json @@ -4,7 +4,7 @@ "description": "Simple CMS documentation website built with Gatsby", "scripts": { "start": "gatsby develop", - "build": "gatsby build && rm -rf dist && mv public dist", + "build": "gatsby build --prefix-paths && rm -rf dist && mv public dist", "lint": "markdownlint 'content/docs/**/*.md'", "reset": "rm -rf .cache" },