diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml index e1ec46a..7153d25 100644 --- a/.github/workflows/webpack.yml +++ b/.github/workflows/webpack.yml @@ -67,3 +67,15 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./dist publish_branch: build + - name: to target repo + uses: s0/git-publish-subdir-action@develop + env: + # 换成自己的目标仓库 + REPO: git@gitee.com:sunwuyuan/zerocatnext.git + # 目标分支 + BRANCH: main + # 要推送的目录 + FOLDER: dist + # 保存在secrets里面生成的ssh私钥 + SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_PRIVATE_KEY }} + KNOWN_HOSTS_FILE: known_hosts # Path relative to the root of the repository \ No newline at end of file diff --git a/known_hosts b/known_hosts new file mode 100644 index 0000000..f90abc0 --- /dev/null +++ b/known_hosts @@ -0,0 +1 @@ +gitee.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMzG3r+88lWSDK9fyjcZmYsWGDBDmGoAasKMAmjoFloGt9HRQX2Qp4f9FY2XK/hsHYinvoh5Xytl9iaUNUWMfYR8q6VEMtOO87DgoAFcfKZHt0/nbAg9RoNTKYt6v8tPwYpr7N0JP/01nE4LFsNDnstr6H0bXSAzbKWCETLZfdPV4l2uSpRn3bU0ugoZ0aSKz5Dc/IloBfGCTvkSsxUydMRd/Chpjt6VxncDbp+Fa6pzsseK8OQzrg6Fgc5783EN3EQqZ2skqyCwExtx95BJlfx1B3luZnWfpkwNDnrZRT/Qx0OrWqyf0q6f9uQr+UG1S8qDcUn3e/9onq3rwBri8/ \ No newline at end of file