diff --git a/.github/workflows/main.yml b/.github/workflows/ci.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/ci.yml diff --git a/.github/workflows/deploy-to-pages.yml b/.github/workflows/deploy-to-pages.yml new file mode 100644 index 00000000..67ace197 --- /dev/null +++ b/.github/workflows/deploy-to-pages.yml @@ -0,0 +1,35 @@ +name: Deploy chili3d to Pages + +on: + push: + branches: [ "test" ] + pull_request: + branches: [ "test" ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [20.x, 22.x] + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + run: | + npm install + npm run build + rm -rf dist/*.map + + - name: Upload GitHub Pages artifact + uses: actions/upload-pages-artifact@v3.0.1 + with: + name: chili3d + path: dist/ \ No newline at end of file