deploy.yml 652 B

123456789101112131415161718192021222324252627282930
  1. name: Deploy CI
  2. on:
  3. push:
  4. branches: ["master", "2.0", "next"]
  5. jobs:
  6. build-and-deploy:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: checkout
  10. uses: actions/checkout@master
  11. - name: install
  12. run: yarn
  13. - name: plugins
  14. run: yarn add umi-plugin-antd-theme umi-plugin-pro umi-plugin-setting-drawer
  15. - name: fetch-blocks
  16. run: yarn run pro fetch-blocks
  17. - name: site
  18. run: npm run build
  19. - name: Deploy
  20. uses: peaceiris/actions-gh-pages@v3
  21. with:
  22. deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
  23. publish_dir: ./dist
  24. force_orphan: true