try different gh-pages-action

This commit is contained in:
Joshua Seigler 2024-04-07 14:38:13 -04:00
parent d001d2deee
commit 2e34bc1be0
2 changed files with 11 additions and 8 deletions

View file

@ -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

View file

@ -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;