Skip to content

Commit af46d18

Browse files
authored
Switch to npm, update readme, add github pages deployment
1 parent db9eda6 commit af46d18

59 files changed

Lines changed: 80 additions & 163 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

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

README.md

Lines changed: 8 additions & 1 deletion

config/webpack.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ const config = {
3737
new CopyWebpackPlugin({
3838
patterns: [
3939
{
40-
from: path.join(rootPath, 'external'),
41-
to: path.join(distPath, 'external'),
42-
noErrorOnMissing: true,
40+
from: path.join(rootPath, 'node_modules/@8thwall/ecs/dist'),
41+
to: path.join(distPath, 'external/runtime'),
4342
},
4443
{
4544
from: path.join(srcPath, 'assets'),

external/runtime/LICENSE

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

external/runtime/metadata.json

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

external/runtime/resources/draco/LICENSE

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

external/runtime/resources/draco/draco_decoder.js

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

external/runtime/resources/draco/draco_decoder.wasm

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

external/runtime/resources/draco/draco_wasm_wrapper.js

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

external/runtime/resources/fonts/baskerville/LICENSE

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

0 commit comments

Comments
 (0)