Skip to content

Commit

Permalink
add github page deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiChen committed Sep 5, 2024
1 parent f4e5c63 commit 78ad402
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
branches:
- master

jobs:
deploy:
name: deploy to page
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build
shell: bash
run: |
echo "::group::Build"
npm ci
npm run build
echo "::endgroup::"
- name: Upload
uses: actions/[email protected]
with:
path: dist

- id: Deploy
name: Deploy to GitHub Pages
uses: actions/[email protected]
with:
token: ${{ github.token }}
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,30 @@

This is an example of the FABRIK algorithm implemented in Typescript. Using html canvas for 2D rendering and Three.js for 3D rendering.

## FABRIK Algorithm

[![FABRIK Algorithm](https://img.youtube.com/vi/UNoX65PRehA/0.jpg)](https://www.youtube.com/watch?v=UNoX65PRehA)

## 2D Example

[2D Single Chain](https://ruichen0101.github.io/fabrik-example/2d/single-end)

[2D Multi Chain](https://ruichen0101.github.io/fabrik-example/2d/multi-end)

## 3D Example

[3D Single Chain](https://ruichen0101.github.io/fabrik-example/3d/single-end)

[3D Multi Chain](https://ruichen0101.github.io/fabrik-example/3d/multi-end)

[3D Full Body](https://ruichen0101.github.io/fabrik-example/3d/full-body)

## Running the project

To run the project, you need to have Node.js installed. Then, you can run the following commands:

```bash
npm install
npm ci
npm run dev
```

Expand Down

0 comments on commit 78ad402

Please sign in to comment.