deploy.yml 909 B

123456789101112131415161718192021222324252627282930
  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. - run: npm install
  13. - run: npm run lint
  14. # - run: yarn run tsc
  15. - name: Build and Deploy
  16. uses: JamesIves/github-pages-deploy-action@master
  17. env:
  18. CI: true
  19. GA_KEY: UA-72788897-6
  20. PROGRESS: none
  21. GIT_CONFIG_NAME: qixian.cs
  22. GIT_CONFIG_EMAIL: qixian.cs@outlook.com
  23. NODE_OPTIONS: --max_old_space_size=4096
  24. ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: site
  25. GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
  26. BRANCH: gh-pages
  27. FOLDER: 'dist/'
  28. BUILD_SCRIPT: npm install && npm uninstall husky && yarn add umi-plugin-antd-theme umi-plugin-pro && npm run site && git checkout . && git clean -df