Skip to content

Merge pull request #199 from tuya/fix/mqtt-protocol-23 #194

Merge pull request #199 from tuya/fix/mqtt-protocol-23

Merge pull request #199 from tuya/fix/mqtt-protocol-23 #194

Workflow file for this run

name: github pages
on:
workflow_dispatch:
push:
branches:
- main # default branch
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Make Output Dir
run: |
cd example
mkdir dist
- name: Build tuya-panel-kit
run: |
project=tuya-panel-kit
cd example/$project
yarn add tuya-panel-kit tuya-panel-utils tuya-panel-theme --registry=https://registry.npmjs.org
DEV_MODE=umi yarn umi build --max-old-space-size=2048
cp -r ./dist ../dist/$project
- name: Build tuya-components-styled
run: |
project=tuya-components-styled
cd example/$project
yarn add tuya-panel-kit tuya-panel-utils tuya-panel-theme --registry=https://registry.npmjs.org
NODE_OPTIONS='--max-old-space-size=4096' DEV_MODE=umi yarn umi build
cp -r ./dist ../dist/$project
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/dist