deploy.yml 908 B

12345678910111213141516171819202122232425262728
  1. name: Deploy CI
  2. on: [push]
  3. jobs:
  4. build-and-deploy:
  5. runs-on: ubuntu-latest
  6. if: github.ref == 'refs/heads/master'
  7. steps:
  8. - name: Checkout
  9. uses: actions/checkout@master
  10. - run: yarn
  11. - run: yarn run lint
  12. # - run: yarn run tsc
  13. - name: Build and Deploy
  14. uses: JamesIves/github-pages-deploy-action@master
  15. env:
  16. CI: true
  17. GA_KEY: UA-72788897-6
  18. PROGRESS: none
  19. GIT_CONFIG_NAME: qixian.cs
  20. GIT_CONFIG_EMAIL: qixian.cs@outlook.com
  21. NODE_OPTIONS: --max_old_space_size=4096
  22. ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: site
  23. GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
  24. BRANCH: gh-pages
  25. FOLDER: 'dist/'
  26. BUILD_SCRIPT: yarn && npm uninstall husky && yarn add umi-plugin-antd-theme umi-plugin-pro && npm run site && git checkout . && git clean -df