From 2e34bc1be0f6bbc5d1b0e6e521b7b4b528748f46 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Sun, 7 Apr 2024 14:38:13 -0400 Subject: [PATCH] try different gh-pages-action --- .github/workflows/deploy.yml | 9 +++++---- src/index.tsx | 10 ++++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3d0d5df..2258b8f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,9 +35,10 @@ jobs: - name: Install dependencies run: npm install - name: Build - run: npm run build ./dist - - name: Vite Github Pages Deployer - uses: skywarth/vite-github-pages-deployer@v1.3.0 + run: npm run build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 id: deploy_to_pages with: - build_path: ./dist + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist diff --git a/src/index.tsx b/src/index.tsx index 5974470..022007a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -74,10 +74,12 @@ const fontNames = Object.keys(fonts); const selectedFont = signal("AurebeshAF-Legends"); effect(() => { - document.documentElement.style.setProperty( - "--font-aurebesh", - selectedFont.value - ); + if (typeof window !== "undefined") { + document.documentElement.style.setProperty( + "--font-aurebesh", + selectedFont.value + ); + } }); const ligatures = computed(() => { return fonts[selectedFont.value].ligatures;