chore(release): publish #195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |