Skip to content

6.6.4

6.6.4 #129

Workflow file for this run

name: Update GitHub pages
on:
release:
types: [published]
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
#cache: 'pnpm'
- name: Install packages
run: pnpm i --frozen-lockfile
- name: Setup
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Build
run: pnpm build
- name: Copy build
run: |
rm -rf /tmp/gh-pages
mkdir /tmp/gh-pages
cp ./packages/examples/build/* /tmp/gh-pages/
mkdir /tmp/gh-pages/sandbox
cp -r ./packages/sandbox/dist/* /tmp/gh-pages/sandbox/
mkdir /tmp/gh-pages/sandbox_simple
cp -r ./packages/sandbox_simple/dist/* /tmp/gh-pages/sandbox_simple/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: /tmp/gh-pages/