deploy.yml 824 B

123456789101112131415161718192021222324252627
  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. PROGRESS: none
  18. GIT_CONFIG_NAME: qixian.cs
  19. GIT_CONFIG_EMAIL: qixian.cs@outlook.com
  20. NODE_OPTIONS: --max_old_space_size=4096
  21. ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: site
  22. GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
  23. BRANCH: gh-pages
  24. FOLDER: 'dist/'
  25. BUILD_SCRIPT: yarn && npm uninstall husky && npm run site && git checkout . && git clean -df