From 3851fb54c3c955b65e5ed83cdfe33f55ae24a1e9 Mon Sep 17 00:00:00 2001 From: Orion Reed Date: Wed, 30 Oct 2024 05:27:01 -0400 Subject: [PATCH] add base url to build --- .github/workflows/deploy.yml | 6 ++---- demo/index.html | 18 +++++++++--------- deno.json | 2 +- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c1cfd85..6dd9a64 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,20 +1,18 @@ -name: Deploy +name: Deploy to GitHub Pages on: push: branches: [main] workflow_dispatch: -# Make sure that you set these permissions permissions: contents: read pages: write id-token: write jobs: - ci: + deploy: runs-on: ubuntu-latest - steps: - name: Setup repo uses: actions/checkout@v4 diff --git a/demo/index.html b/demo/index.html index 827ecb7..e55e5cc 100644 --- a/demo/index.html +++ b/demo/index.html @@ -19,15 +19,15 @@

Folk Canvas Primitives

diff --git a/deno.json b/deno.json index 83fb67c..ff35313 100644 --- a/deno.json +++ b/deno.json @@ -1,7 +1,7 @@ { "tasks": { "dev": "vite demo", - "build": "vite build demo --outDir dist" + "build": "vite build demo --outDir dist --base=/folk-canvas/" }, "imports": { "perfect-arrows": "npm:perfect-arrows@^0.3.7",