sync-docs.yml 668 B

123456789101112131415161718192021222324252627282930
  1. name: sync to docs
  2. on:
  3. push:
  4. branches:
  5. - next # default branch
  6. paths:
  7. - '.github/workflows/**'
  8. - 'src/**'
  9. jobs:
  10. copy:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - run: yarn install
  15. - run: yarn copydocs
  16. - name : Sync
  17. uses : JamesIves/github-pages-deploy-action@4.1.7
  18. with :
  19. branch : master # action 应该部署到的分支 。
  20. folder : site_docs #操作应该部署的文件夹 。
  21. clean: false
  22. repository-name: jdf2e/nutui-docs
  23. token: ${{ secrets.GIT_ACTION }}
  24. target-folder: src/docs_vue