Skip to content

Commit

Permalink
🐎 ci: test deploy to pages
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangechen committed Nov 12, 2024
1 parent 9d6fc56 commit 318bfcf
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
File renamed without changes.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-to-pages.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
name: chili3d
path: dist/

0 comments on commit 318bfcf

Please sign in to comment.