Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Fruup authored Apr 8, 2024
1 parent 44ca67c commit 6c59217
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
pull_request_target:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: checkout
uses: actions/checkout@v4

- name: setup bun
uses: oven-sh/setup-bun@v1

- name: build
run: |
bun i
bun run build
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: build
run: |
bun i
GH_PAGES=1 bun run build
bun run build
- name: deploy
uses: peaceiris/actions-gh-pages@v4
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Navigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import { page } from '$app/stores'
import { pageNavigateDirection } from '$lib/Page.svelte'
const links: { url: string, text?: string, imageUrl?: string }[] = {
const links: { url: string, text?: string, imageUrl?: string }[] = [
{ url: "/", text: "/" },
{ url: "https://github.com/fruup/svelte-ticker-board", imageUrl: "/github-mark-white.svg" },
}
]
let xDown: number | null = null
let yDown: number | null = null
Expand Down
8 changes: 5 additions & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
Expand All @@ -8,8 +8,10 @@ const config = {
preprocess: vitePreprocess(),

kit: {
adapter: adapter()
}
adapter: adapter(),

outDir: 'docs',
},
};

export default config;

0 comments on commit 6c59217

Please sign in to comment.