auto-merge.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. # name: Automerge
  2. # on:
  3. # pull_request:
  4. # types:
  5. # - labeled
  6. # - unlabeled
  7. # - synchronize
  8. # - opened
  9. # - edited
  10. # - ready_for_review
  11. # - reopened
  12. # - unlocked
  13. # pull_request_review:
  14. # types:
  15. # - submitted
  16. # status: {}
  17. # jobs:
  18. # # 合并发布版本的 pr 到 master
  19. # auto-merge:
  20. # runs-on: ubuntu-latest
  21. # steps:
  22. # - name: Automerge
  23. # uses: 'pascalgn/automerge-action@v0.14.3'
  24. # env:
  25. # BASE_BRANCHES: 'release'
  26. # GITHUB_TOKEN: '${{ secrets.TOKEN }}'
  27. # MERGE_LABELS: ''
  28. # MERGE_FILTER_AUTHOR: 'kailong321200875'
  29. # push-to-gh-pages:
  30. # needs: [auto-merge]
  31. # runs-on: ubuntu-latest
  32. # steps:
  33. # - name: Checkout
  34. # uses: actions/checkout@v2
  35. # - name: Setup Pnpm
  36. # uses: pnpm/action-setup@v2
  37. # with:
  38. # version: latest
  39. # - name: use Node.js 16
  40. # uses: actions/setup-node@v2.1.2
  41. # with:
  42. # node-version: '16.x'
  43. # - name: Set SSH Environment
  44. # env:
  45. # DOCS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
  46. # run: |
  47. # mkdir -p ~/.ssh/
  48. # echo "$ACTIONS_DEPLOY_KEY" > ~/.ssh/id_rsa
  49. # chmod 600 ~/.ssh/id_rsa
  50. # ssh-keyscan github.com > ~/.ssh/known_hosts
  51. # chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
  52. # git config --local user.email "321200875@qq.com"
  53. # git config --local user.name "kailong321200875"
  54. # # 发布到 github
  55. # - name: Build Github
  56. # run: |
  57. # pnpm install --no-frozen-lockfile
  58. # pnpm run build:pro
  59. # - name: Deploy Github
  60. # uses: peaceiris/actions-gh-pages@v3
  61. # with:
  62. # deploy_key: ${{secrets.ACTIONS_DEPLOY_KEY}}
  63. # publish_branch: gh-pages
  64. # publish_dir: ./dist-pro
  65. # force_orphan: true
  66. # cname: element-plus-admin.cn
  67. # push-to-gh-pages-gitee:
  68. # needs: [auto-merge]
  69. # runs-on: ubuntu-latest
  70. # steps:
  71. # - name: Checkout
  72. # uses: actions/checkout@v2
  73. # - name: Setup Pnpm
  74. # uses: pnpm/action-setup@v2
  75. # with:
  76. # version: latest
  77. # - name: use Node.js 16
  78. # uses: actions/setup-node@v2.1.2
  79. # with:
  80. # node-version: '16.x'
  81. # - name: Set SSH Environment
  82. # env:
  83. # DOCS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
  84. # run: |
  85. # mkdir -p ~/.ssh/
  86. # echo "$ACTIONS_DEPLOY_KEY" > ~/.ssh/id_rsa
  87. # chmod 600 ~/.ssh/id_rsa
  88. # ssh-keyscan github.com > ~/.ssh/known_hosts
  89. # chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
  90. # git config --local user.email "321200875@qq.com"
  91. # git config --local user.name "kailong321200875"
  92. # - name: Build Gitee
  93. # run: |
  94. # pnpm install --no-frozen-lockfile
  95. # pnpm run build:gitee
  96. # # 发布到 gitee
  97. # - name: Deploy Gitee
  98. # uses: peaceiris/actions-gh-pages@v3
  99. # with:
  100. # deploy_key: ${{secrets.ACTIONS_DEPLOY_KEY}}
  101. # publish_branch: gh-pages-gitee
  102. # publish_dir: ./dist-pro
  103. # force_orphan: true
  104. # - name: Sync Github Repos To Gitee # 名字随便起
  105. # uses: Yikun/hub-mirror-action@v1.1 # 使用Yikun/hub-mirror-action
  106. # with:
  107. # src: github/kailong321200875 # 源端账户名(github)
  108. # dst: gitee/kailong110120130 # 目的端账户名(gitee)
  109. # dst_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} # SSH密钥对中的私钥
  110. # dst_token: ${{ secrets.GITEE_TOKEN }} # Gitee账户的私人令牌
  111. # account_type: user # 账户类型
  112. # clone_style: 'https' # 使用https方式进行clone,也可以使用ssh
  113. # debug: true # 启用后会显示所有执行命令
  114. # force_update: true # 启用后,强制同步,即强制覆盖目的端仓库
  115. # static_list: 'vue-element-plus-admin' # 静态同步列表,在此填写需要同步的仓库名称,可填写多个
  116. # timeout: '600s' # git超时设置,超时后会自动重试git操作