Skip to content

Commit 9623194

Browse files
committed
Cleanup and re-add github action
1 parent c832f26 commit 9623194

File tree

7 files changed

+50
-62
lines changed

7 files changed

+50
-62
lines changed

.github/workflows/pages.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: 'pages'
16+
cancel-in-progress: true
17+
18+
jobs:
19+
deploy:
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Set up Bun
28+
uses: oven-sh/setup-bun@v1
29+
with:
30+
bun-version: latest
31+
- name: Install dependencies
32+
run: bun install
33+
- name: Test
34+
run: bun test
35+
- name: Build
36+
run: bun run build
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v4
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
# Upload dist folder
43+
path: './dist'
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

src/routes/algs.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { useStore } from '@tanstack/react-store';
77
import ResultsDisplay from '@/algs/components/results-display';
88
import StatDisplay from '@/algs/components/stat-display';
99
import HotColdDisplay from '@/algs/components/hot-cold-display';
10-
import { Card } from '@heroui/react';
1110

1211
export const Route = createFileRoute('/algs')({
1312
component: Algs,

test/mode.test.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

test/parse.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,5 @@ describe('Analyse Solve', () => {
187187
expect(analysis.extractedAlgs.length).toBe(12);
188188
});
189189
});
190+
191+
// TODO: check solve.json as it is parsing wrong

tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
/* Bundler mode */
1010
"moduleResolution": "bundler",
11-
"allowImportingTsExtensions": true,
11+
"allowImportingTsExtensions": false,
1212
"verbatimModuleSyntax": true,
1313
"moduleDetection": "force",
1414

vite.config.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ export default defineConfig({
2525
"@": path.resolve(__dirname, "./src"),
2626
},
2727
},
28+
base: '/bld-ninja/'
2829
});

0 commit comments

Comments
 (0)