deploy.yml 640 B

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