Skip to content

Commit

Permalink
Try to deploy playgrounds for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugustinette committed Jul 5, 2024
1 parent b611600 commit 0259d42
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,25 @@ jobs:
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci
# Run tests and generate reports
- name: Run Vitest to generate test reports
run: npm run test:report
# Build doc
- name: Build with VitePress
run: npm run docs:build
# Build 2D playground
- name: Build playgrounds
run: ./node_modules/.bin/nx build @fibbojs/playground-2d
# Build 3D playground
- name: Build playgrounds
run: ./node_modules/.bin/nx build @fibbojs/playground-3d
# Move test reports to the docs folder
- name: Move test reports to the docs folder
run: mv html docs/.vitepress/dist/test-reports && mv fibbo/coverage docs/.vitepress/dist/coverage
# Move playgrounds to the docs folder
- name: Move playgrounds to the docs folder
run: mv apps/playground-2d/dist docs/.vitepress/dist/playground-2d && mv apps/playground-3d/dist docs/.vitepress/dist/playground-3d
# Upload artifacts
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
Core package for the Fibbo web game engine, based on [three.js](https://threejs.org/) and [Rappier](https://rapier.rs/).

- [🏡 Documentation](https://fibbojs.github.io/fibbo/)
- [🧪 Test Report](https://fibbojs.github.io/fibbo/test-reports)
- [🎮 2D Playground](https://fibbojs.github.io/fibbo/playground-2d)
- [🎮 3D Playground](https://fibbojs.github.io/fibbo/playground-3d)

## Development

Expand Down
1 change: 1 addition & 0 deletions apps/playground-2d/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export default defineConfig({
wasm(),
topLevelAwait(),
],
base: '/fibbo/playground-2d/',
})
1 change: 1 addition & 0 deletions apps/playground-3d/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export default defineConfig({
wasm(),
topLevelAwait(),
],
base: '/fibbo/playground-3d/',
})

0 comments on commit 0259d42

Please sign in to comment.