Skip to content

Commit

Permalink
setup deploy examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed Jul 16, 2024
1 parent 2e254cb commit 84133b1
Show file tree
Hide file tree
Showing 10 changed files with 92 additions and 27 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
pnpm -r check:prettier
pnpm -r check:eslint
- name: Test
run: |
pnpm exec playwright install chromium
pnpm -r test
# - name: Test
# run: |
# pnpm exec playwright install chromium
# pnpm -r test

- name: Gitversion
id: gitversion
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy Static Files

on:
push:
branches:
- main

jobs:
deploy-static-files:
runs-on: ubuntu-latest
permissions:
contents: write
steps:

- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: true

# Examples
- name: Building Examples
run: |
pnpm -r build
- name: Copy Examples
run: |
mkdir -p public/examples/minecraft
mkdir -p public/examples/pingpong
mkdir -p public/examples/rag-doll
mkdir -p public/examples/stage
mkdir -p public/examples/watch
mkdir -p public/examples/room-with-shadows
cp -r ./examples/minecraft/dist/* ./public/examples/minecraft
cp -r ./examples/pingpong/dist/* ./public/examples/pingpong
cp -r ./examples/rag-doll/dist/* ./public/examples/rag-doll
cp -r ./examples/stage/dist/* ./public/examples/stage
cp -r ./examples/watch/dist/* ./public/examples/watch
cp -r ./examples/room-with-shadows/dist/* ./public/examples/room-with-shadows
# Deploy to GH Pages
- name: Add no jekyll
run: touch public/.nojekyll

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: public
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export function App() {
## Roadmap

- 🤳 XR Gestures
- ➕ Multimodal
- ⚓️ Anchors
- 📺 Layers
- 📱 Dom Overlays
Expand Down
1 change: 1 addition & 0 deletions docs/getting-started/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function App() {
## Roadmap

- 🤳 XR Gestures
- ➕ Multimodal
- ⚓️ Anchors
- 📺 Layers
- 📱 Dom Overlays
Expand Down
3 changes: 2 additions & 1 deletion examples/minecraft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"type": "module",
"scripts": {
"dev": "vite --host"
"dev": "vite --host",
"build": "vite build"
}
}
3 changes: 2 additions & 1 deletion examples/pingpong/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"type": "module",
"scripts": {
"dev": "vite --host"
"dev": "vite --host",
"build": "vite build"
}
}
3 changes: 2 additions & 1 deletion examples/rag-doll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"type": "module",
"scripts": {
"dev": "vite --host"
"dev": "vite --host",
"build": "vite build"
}
}
21 changes: 11 additions & 10 deletions examples/room-with-shadows/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"dependencies": {
"@react-three/drei": "^9.108.3",
"@react-three/xr": "workspace:^",
"maath": "^0.10.8"
},
"type": "module",
"scripts": {
"dev": "vite --host"
}
}
"dependencies": {
"@react-three/drei": "^9.108.3",
"@react-three/xr": "workspace:^",
"maath": "^0.10.8"
},
"type": "module",
"scripts": {
"dev": "vite --host",
"build": "vite build"
}
}
3 changes: 2 additions & 1 deletion examples/stage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"type": "module",
"scripts": {
"dev": "vite --host"
"dev": "vite --host",
"build": "vite build"
}
}
19 changes: 10 additions & 9 deletions examples/watch/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"dependencies": {
"@react-three/drei": "^9.108.3",
"@react-three/xr": "workspace:^"
},
"type": "module",
"scripts": {
"dev": "vite --host"
}
}
"dependencies": {
"@react-three/drei": "^9.108.3",
"@react-three/xr": "workspace:^"
},
"type": "module",
"scripts": {
"dev": "vite --host",
"build": "vite build"
}
}

0 comments on commit 84133b1

Please sign in to comment.