diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 11440bc..3c30b22 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..849ddff --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist/ diff --git a/README.md b/README.md index 59e2bb9..4795b30 100644 --- a/README.md +++ b/README.md @@ -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 . ## 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**.