Skip to content

Commit

Permalink
GH actions static build
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Nov 13, 2023
1 parent 0c66d71 commit de4e0cf
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 15 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches: [main]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: install
working-directory: ./building-plans
run: npm i --legacy-peer-deps

- name: build
working-directory: ./building-plans
run: npm run build

- name: deploy pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: building-plans/dist/public
94 changes: 93 additions & 1 deletion building-plans/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions building-plans/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"@mdx-js/rollup": "^2.3.0",
"sass": "^1.69.5",
"solid-start-node": "^0.3.10",
"solid-start-static": "^0.3.10",
"typescript": "^4.9.5",
"vite": "^4.4.9"
},
Expand Down
4 changes: 1 addition & 3 deletions building-plans/src/utils/gltfUtils.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import '@babylonjs/core/Debug/debugLayer'
import('@babylonjs/core/Debug/debugLayer')
import('@babylonjs/inspector')
import {
Engine,
Scene,
ArcRotateCamera,
Vector3,
HemisphericLight,
Mesh,
MeshBuilder,
SceneLoader,
} from '@babylonjs/core'
import '@babylonjs/loaders'
Expand Down
2 changes: 2 additions & 0 deletions building-plans/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import solid from 'solid-start/vite'
import staticAdapter from 'solid-start-static'
import { defineConfig } from 'vite'

export default defineConfig({
Expand All @@ -12,6 +13,7 @@ export default defineConfig({
enforce: 'pre',
},
solid({
adapter: staticAdapter(),
extensions: ['.mdx', '.md'],
}),
],
Expand Down
19 changes: 19 additions & 0 deletions ewdesign.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"folders": [
{
"path": ".",
"name": "_root"
},
{
"path": "building-plans"
},
{
"path": "ewdesign"
}
],
"settings": {
"liveServer.settings.multiRootWorkspaceName": "building-plans",
"liveServer.settings.AdvanceCustomBrowserCmdLine": "",
"liveServer.settings.root": "dist/public",
}
}
11 changes: 0 additions & 11 deletions ewdesign/ewdesign.code-workspace

This file was deleted.

0 comments on commit de4e0cf

Please sign in to comment.