Merge pull request #332 from ecaps1038/monorepo-dev #26
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: Website | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Generations of Components | |
run: pnpm run build:comp | |
- name: Build docs | |
run: | | |
pnpm run build:demo | |
cp ./packages/yike-design-demo/dist/index.html ./packages/yike-design-demo/dist/404.html | |
- name: Deploy site | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
clean: true | |
branch: gh-pages | |
folder: ./packages/yike-design-demo/dist | |
token: ${{secrets.GIT_TOKEN}} |