Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Validate JavaScript
run: npm run build

- name: Upload static site
uses: actions/upload-pages-artifact@v3
with:
path: .
path: .

deploy:
environment:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ A static Three.js + Ammo.js soft-body cloth demo that simulates a flag flying in
## Local preview

```bash
npm run preview
python3 -m http.server 4173
```

Then open <http://127.0.0.1:4173/>.

## Deployment

This repository includes a GitHub Pages workflow at `.github/workflows/deploy.yml`.
This repository includes a GitHub Pages workflow at `.github/workflows/deploy.yml`. GitHub Pages only serves static files. The workflow does not install dependencies or run npm; it uses the system Node.js binary only to syntax-check `src/main.js`, then copies `index.html` plus `src/` into a `dist/` artifact.

After the branch is merged to `main`, enable GitHub Pages in the repository settings with **Source: GitHub Actions**. The workflow can also be run manually from the Actions tab via **Deploy static site to GitHub Pages**.