| 123456789101112131415161718192021222324252627282930 |
- name: Deploy CI
- on:
- push:
- branches: ["master", "2.0", "next"]
- jobs:
- build-and-deploy:
- runs-on: ubuntu-latest
- steps:
- - name: checkout
- uses: actions/checkout@master
- - name: install
- run: yarn
- - name: plugins
- run: yarn add umi-plugin-antd-theme umi-plugin-pro umi-plugin-setting-drawer
- - name: fetch-blocks
- run: yarn run pro fetch-blocks
- - name: site
- run: npm run build
- - name: Deploy
- uses: peaceiris/actions-gh-pages@v3
- with:
- deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
- publish_dir: ./dist
- force_orphan: true
|