Skip to content

Commit 1d523c4

Browse files
Zachery Thomas RichardetZachery Thomas Richardet
authored andcommitted
change up deploy to look into a build folder
1 parent d3aae55 commit 1d523c4

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/deploy.yml

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

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

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

vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export default defineConfig(({ mode }) => {
2121
optimizeDeps: {
2222
include: ['ol/ol.css'],
2323
},
24+
build: {
25+
sourcemap: false,
26+
outDir: '../build',
27+
emptyOutDir: true,
28+
},
2429
server: {
2530
port: 5173,
2631
host: true,

0 commit comments

Comments
 (0)