name: Deploy demo on: push: paths: ["demo/**", "demo_markdown/**", "thaw/**"] branches: - main jobs: deploy: runs-on: ubuntu-latest permissions: contents: write pull-requests: write steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node uses: actions/setup-node@v4 with: node-version: 18 - name: Setup Rust uses: actions-rs/toolchain@v1 with: toolchain: stable target: wasm32-unknown-unknown override: true - name: Install Trunk uses: jetli/trunk-action@v0.4.0 with: version: "v0.17.5" - name: Build run: | cd demo trunk build --release - name: Deploy run: npx vercel --token ${VERCEL_TOKEN} --prod env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}