Skip to content

6.4.1

6.4.1 #118

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@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 16
#cache: 'pnpm'
- name: Install packages
run: pnpm i
- 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/