Skip to content

Commit cdfc621

Browse files
Zachery Thomas RichardetZachery Thomas Richardet
authored andcommitted
add build folder to the repo
1 parent f9c850b commit cdfc621

File tree

6 files changed

+63
-9
lines changed

6 files changed

+63
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ jobs:
3535

3636
- name: Build
3737
run: npm run build
38-
env:
39-
VITE_BASE_URL: '/inference-app/'
4038

41-
- name: Deploy
39+
- name: Setup Pages
40+
uses: actions/configure-pages@v4
41+
42+
- name: Upload artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
path: './build'
46+
47+
- name: Deploy to GitHub Pages
4248
id: deployment
4349
uses: actions/deploy-pages@v4
44-
with:
45-
folder: build
46-
branch: gh-pages
47-
clean: true
48-
path: ./build

build/assets/index-BwE9eBa4.js

Lines changed: 34 additions & 0 deletions
Large diffs are not rendered by default.

build/assets/index-DjL0XJOT.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>FTW Inference</title>
7+
<script type="module" crossorigin src="/assets/index-BwE9eBa4.js"></script>
8+
<link rel="stylesheet" crossorigin href="/assets/index-DjL0XJOT.css">
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
</body>
13+
</html>

vite.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ export default defineConfig({
1111
'@': fileURLToPath(new URL('./src', import.meta.url)),
1212
},
1313
},
14+
build: {
15+
sourcemap: false,
16+
outDir: './build',
17+
emptyOutDir: true,
18+
},
1419
base: process.env.VITE_BASE_API_URL || '/',
1520
optimizeDeps: {
1621
include: ['ol/ol.css'],

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default defineConfig(({ mode }) => {
2323
},
2424
build: {
2525
sourcemap: false,
26-
outDir: '../build',
26+
outDir: './build',
2727
emptyOutDir: true,
2828
},
2929
server: {

0 commit comments

Comments
 (0)