<script type="application/ld+json">{"@context":"http://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.simcentric.com/sc/"},{"@type":"ListItem","position":2,"name":"如何使用 GitHub 将代码部署到你的服务器","item":"https://www.simcentric.com/sc/hong-kong-dedicated-server-sc/how-to-deploy-code-using-github-to-your-server/"}]}</script> {"id":31782,"date":"2026-04-30T11:14:13","date_gmt":"2026-04-30T03:14:13","guid":{"rendered":"https:\/\/www.simcentric.com\/uncategorized-sc\/how-to-deploy-code-using-github-to-your-server\/"},"modified":"2026-04-30T11:19:31","modified_gmt":"2026-04-30T03:19:31","slug":"how-to-deploy-code-using-github-to-your-server","status":"publish","type":"post","link":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/","title":{"rendered":"\u5982\u4f55\u4f7f\u7528 GitHub \u5c06\u4ee3\u7801\u90e8\u7f72\u5230\u4f60\u7684\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u5f53\u4f60\u628a\u4ee3\u7801\u4ece GitHub \u81ea\u52a8\u90e8\u7f72\u5230\u81ea\u5df1\u7684\u670d\u52a1\u5668\u65f6\uff0c\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\u5e76\u907f\u514d\u51fa\u9519\u3002<a href=\"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/saas-deployment-region-selection-hong-kong-us-or-japan\/\" target=\"_blank\" rel=\"noopener\">\u90e8\u7f72\u81ea\u52a8\u5316<\/a>\u80fd\u591f\u5e26\u6765\u66f4\u5feb\u7684\u53cd\u9988\uff0c\u4e5f\u6709\u52a9\u4e8e\u56e2\u961f\u66f4\u9ad8\u6548\u5730\u534f\u4f5c\u3002\u501f\u52a9 GitHub Actions\u3001Webhook \u548c\u90e8\u7f72\u811a\u672c\u7b49\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u51cf\u5c11\u4eba\u4e3a\u5931\u8bef\uff0c\u8ba9\u6574\u4e2a\u6d41\u7a0b\u66f4\u52a0\u7a33\u5b9a\u53ef\u9760\u3002\u5373\u4f7f\u4f60\u53ea\u638c\u63e1\u4e86 GitHub \u548c<a href=\"https:\/\/www.simcentric.com\/sc\/products\/dedicated-server-hk\/\" target=\"_blank\" rel=\"noopener\">\u670d\u52a1\u5668\u7ba1\u7406<\/a>\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u4e5f\u80fd\u642d\u5efa\u8fd9\u5957\u5de5\u4f5c\u6d41\uff0c\u5e76\u5f88\u5feb\u770b\u5230\u6539\u8fdb\u6548\u679c\u3002<\/p>\n<h2><strong>\u5173\u952e\u8981\u70b9<\/strong><\/h2>\n<ul>\n<li>\u5c06\u4ee3\u7801\u90e8\u7f72\u81ea\u52a8\u5316\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\u5e76\u51cf\u5c11\u9519\u8bef\u3002\u4f7f\u7528 GitHub Actions \u548c Webhook \u7b49\u5de5\u5177\uff0c\u53ef\u4ee5\u8ba9\u6d41\u7a0b\u66f4\u52a0\u987a\u7545\u3002<\/li>\n<li>\u51c6\u5907\u597d\u5fc5\u8981\u7684\u5de5\u5177\u548c\u8d26\u6237\uff0c\u5305\u62ec GitHub \u4ed3\u5e93\u3001\u4e91\u670d\u52a1\u5668\u4ee5\u53ca\u90e8\u7f72\u811a\u672c\u3002\u8fd9\u4e9b\u57fa\u7840\u914d\u7f6e\u662f\u6210\u529f\u5b9e\u73b0\u81ea\u52a8\u5316\u7684\u5173\u952e\u3002<\/li>\n<li>\u901a\u8fc7 SSH \u5bc6\u94a5\u5b9e\u73b0\u514d\u5bc6\u8bbf\u95ee\uff0c\u4fdd\u969c\u670d\u52a1\u5668\u5b89\u5168\u3002\u8fd9\u80fd\u786e\u4fdd\u53ea\u6709\u53d7\u4fe1\u4efb\u7684\u7cfb\u7edf\u53ef\u4ee5\u8fde\u63a5\u5230\u4f60\u7684\u670d\u52a1\u5668\u3002<\/li>\n<li>\u5728\u6b63\u5f0f\u4e0a\u7ebf\u524d\uff0c\u5148\u5728\u9884\u53d1\u5e03\u670d\u52a1\u5668\u4e0a\u6d4b\u8bd5\u90e8\u7f72\u6d41\u7a0b\u3002\u8fd9\u6837\u53ef\u4ee5\u53ca\u65e9\u53d1\u73b0\u95ee\u9898\uff0c\u4fdd\u62a4\u751f\u4ea7\u73af\u5883\u3002<\/li>\n<li>\u4f7f\u7528 GitHub Secrets \u5b89\u5168\u5b58\u50a8\u654f\u611f\u4fe1\u606f\u3002\u8fd9\u53ef\u4ee5\u8ba9\u5bc6\u7801\u548c\u5bc6\u94a5\u4e0d\u4f1a\u66b4\u9732\u5728\u5de5\u4f5c\u6d41\u6587\u4ef6\u4e2d\u3002<\/li>\n<\/ul>\n<h2><strong>\u81ea\u52a8\u90e8\u7f72\u7684\u524d\u7f6e\u6761\u4ef6<\/strong><\/h2>\n<h3>\u6240\u9700\u5de5\u5177\u4e0e\u8d26\u6237<\/h3>\n<p>\u5728\u5f00\u59cb\u8bbe\u7f6e\u81ea\u52a8\u90e8\u7f72\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u51c6\u5907\u4e00\u4e9b\u5fc5\u8981\u7684\u5de5\u5177\u548c\u8d26\u6237\u3002\u5b83\u4eec\u5c06\u5e2e\u52a9\u4f60\u628a GitHub \u4e0a\u7684\u4ee3\u7801\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u5e76\u8ba9\u6574\u4e2a\u6d41\u7a0b\u66f4\u52a0\u987a\u7545\u3002<\/p>\n<ol>\n<li><strong>\u5728\u7ebf\u8fdc\u7a0b\u4ed3\u5e93<\/strong>\uff1a\u4f60\u9700\u8981\u4e00\u4e2a GitHub \u8d26\u6237\uff0c\u5e76\u62e5\u6709\u4e00\u4e2a\u5b58\u653e\u9879\u76ee\u4ee3\u7801\u7684\u4ed3\u5e93\u3002<\/li>\n<li><strong>\u672c\u5730 Git \u4ed3\u5e93<\/strong>\uff1a\u5728\u4f60\u7684\u7535\u8111\u4e0a\u914d\u7f6e\u4e00\u4e2a\u672c\u5730 Git \u4ed3\u5e93\uff0c\u7528\u4e8e\u7ba1\u7406\u4ee3\u7801\u53d8\u66f4\u3002<\/li>\n<li><strong>\u4e91\u670d\u52a1\u5668<\/strong>\uff1a\u9009\u62e9\u4e00\u4e2a\u4e91\u670d\u52a1\u5668\u63d0\u4f9b\u5546\uff0c\u4f8b\u5982 Amazon EC2 \u6216 Rackspace\u3002\u4f60\u7684\u7f51\u7ad9\u6216\u5e94\u7528\u5c06\u8fd0\u884c\u5728\u8fd9\u91cc\u3002<\/li>\n<li><strong>\u90e8\u7f72\u811a\u672c<\/strong>\uff1a\u7f16\u5199\u4e00\u4e2a\u90e8\u7f72\u811a\u672c\uff0c\u4f8b\u5982 <code>deploy.php<\/code>\uff0c\u7528\u4e8e\u62c9\u53d6 GitHub \u4e0a\u7684\u6700\u65b0\u4ee3\u7801\u3002<\/li>\n<li><strong>\u670d\u52a1\u5668\u4e0a\u5b89\u88c5 Git<\/strong>\uff1a\u786e\u4fdd\u4f60\u7684\u670d\u52a1\u5668\u5df2\u5b89\u88c5 Git\uff0c\u5e76\u4e14\u7248\u672c\u4e3a\u6700\u65b0\u3002<\/li>\n<li><strong>SSH \u5bc6\u94a5\u8bbe\u7f6e<\/strong>\uff1a\u5728\u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5\uff0c\u4ee5\u5b9e\u73b0\u4e0e GitHub \u7684\u5b89\u5168\u514d\u5bc6\u901a\u4fe1\u3002<\/li>\n<li><strong>\u5c06 SSH \u516c\u94a5\u6dfb\u52a0\u5230 GitHub<\/strong>\uff1a\u628a\u670d\u52a1\u5668\u7684 SSH \u516c\u94a5\u6dfb\u52a0\u5230\u4f60\u7684 GitHub \u8d26\u6237\u4e2d\uff0c\u4ee5\u4fbf\u670d\u52a1\u5668\u80fd\u591f\u8bbf\u95ee\u4ed3\u5e93\u3002<\/li>\n<li><strong>\u8bbe\u7f6e Post-Receive Hook<\/strong>\uff1a\u5728 GitHub \u4e2d\u914d\u7f6e post-receive hook\uff0c\u7528\u4e8e\u89e6\u53d1\u4f60\u7684\u90e8\u7f72\u811a\u672c\u3002<\/li>\n<\/ol>\n<blockquote><p><strong>\u63d0\u793a\uff1a<\/strong>\u8bf7\u59a5\u5584\u4fdd\u7ba1\u4f60\u7684 SSH \u5bc6\u94a5\u3002\u7edd\u4e0d\u8981\u5c06\u79c1\u94a5\u5206\u4eab\u7ed9\u4efb\u4f55\u4eba\u3002<\/p><\/blockquote>\n<h3>\u51c6\u5907\u4f60\u7684\u670d\u52a1\u5668<\/h3>\n<p>\u4f60\u5fc5\u987b\u5148\u51c6\u5907\u597d\u670d\u52a1\u5668\uff0c\u4ee5\u4fbf\u63a5\u6536\u6765\u81ea GitHub \u7684\u4ee3\u7801\u66f4\u65b0\u3002\u8fd9\u6837\u7684\u8bbe\u7f6e\u53ef\u4ee5\u786e\u4fdd\u6bcf\u6b21\u81ea\u52a8\u90e8\u7f72\u90fd\u80fd\u987a\u5229\u6267\u884c\u3002<\/p>\n<ul>\n<li>\u5c06\u4f60\u7684 GitHub \u4ed3\u5e93\u514b\u9686\u5230\u670d\u52a1\u5668\u4e0a\u7684\u67d0\u4e2a\u76ee\u5f55\u3002\u4f60\u53ef\u4ee5\u4e3a\u751f\u4ea7\u73af\u5883\u548c\u9884\u53d1\u5e03\u73af\u5883\u5206\u522b\u521b\u5efa\u4e0d\u540c\u7684\u76ee\u5f55\u3002<\/li>\n<li>\u7f16\u5199 Bash \u90e8\u7f72\u811a\u672c\uff0c\u5e76\u8d4b\u4e88\u8fd9\u4e9b\u811a\u672c\u6267\u884c\u6743\u9650\uff0c\u4ee5\u4fbf\u5b83\u4eec\u80fd\u591f\u83b7\u53d6\u6700\u65b0\u4ee3\u7801\u5e76\u8fd0\u884c\u3002<\/li>\n<li>\u8ba2\u9605 GitHub \u7684 Webhook API\u3002\u8fd9\u6837\u4f60\u7684\u670d\u52a1\u5668\u5c31\u80fd\u76d1\u542c\u4e8b\u4ef6\uff0c\u5e76\u5728\u9700\u8981\u65f6\u81ea\u52a8\u5f00\u59cb\u90e8\u7f72\u6d41\u7a0b\u3002<\/li>\n<\/ul>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4ed3\u5e93\u514b\u9686\u547d\u4ee4\uff1a<\/p>\n<pre><code>git clone git@github.com:yourusername\/your-repo.git\r\n<\/code><\/pre>\n<p>\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0c\u4f60\u7684\u670d\u52a1\u5668\u5c31\u53ef\u4ee5\u8fdb\u884c\u81ea\u52a8\u90e8\u7f72\u4e86\u3002\u6bcf\u6b21\u90e8\u7f72\u65b0\u4ee3\u7801\u65f6\uff0c\u4f60\u90fd\u80fd\u8282\u7701\u65f6\u95f4\u5e76\u51cf\u5c11\u9519\u8bef\u3002<\/p>\n<h2><strong>\u4f7f\u7528 GitHub Actions \u81ea\u52a8\u90e8\u7f72\u4ee3\u7801<\/strong><\/h2>\n<p>\u4f60\u53ef\u4ee5\u501f\u52a9 GitHub Actions \u5c06\u4ee3\u7801\u81ea\u52a8\u90e8\u7f72\u5230\u670d\u52a1\u5668\u3002\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u6bcf\u6b21\u63a8\u9001\u53d8\u66f4\u65f6\u81ea\u52a8\u8fd0\u884c\u811a\u672c\u5e76\u53d1\u5e03\u4ee3\u7801\u3002\u4f60\u4e0d\u518d\u9700\u8981\u624b\u52a8\u767b\u5f55\u670d\u52a1\u5668\u6216\u624b\u52a8\u6267\u884c\u547d\u4ee4\uff0c\u6574\u4e2a\u8fc7\u7a0b\u4f1a\u66f4\u52a0\u6d41\u7545\u4e14\u53ef\u91cd\u590d\u3002<\/p>\n<h3>\u521b\u5efa\u5de5\u4f5c\u6d41\u6587\u4ef6<\/h3>\n<p>\u8981\u5b9e\u73b0\u4ee3\u7801\u81ea\u52a8\u90e8\u7f72\uff0c\u4f60\u9700\u8981\u5728\u4ed3\u5e93\u4e2d\u521b\u5efa\u4e00\u4e2a\u5de5\u4f5c\u6d41\u6587\u4ef6\u3002\u8fd9\u4e2a\u6587\u4ef6\u4f1a\u544a\u8bc9 GitHub Actions\uff1a\u5f53\u4f60\u63a8\u9001\u65b0\u4ee3\u7801\u65f6\uff0c\u9700\u8981\u6267\u884c\u54ea\u4e9b\u64cd\u4f5c\u3002\u8bf7\u5c06\u8be5\u6587\u4ef6\u653e\u5728 <code>.github\/workflows\/<\/code> \u76ee\u5f55\u4e2d\uff0c\u5e76\u547d\u540d\u4e3a\u7c7b\u4f3c <code>main.yml<\/code> \u7684\u540d\u79f0\u3002<\/p>\n<blockquote><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u5de5\u4f5c\u6d41\u6587\u4ef6\u793a\u4f8b\uff1a\u5b83\u4f1a\u5728\u6bcf\u6b21\u63a8\u9001\u6807\u7b7e\u65f6\u89e6\u53d1\uff0c\u5e76\u8fd0\u884c\u90e8\u7f72\u4efb\u52a1\uff1a<\/p>\n<pre><code>name: Deploy on Tag\r\n\r\non:\r\n  push:\r\n    tags:\r\n      - '*'\r\n\r\njobs:\r\n  deploy:\r\n    runs-on: ubuntu-latest\r\n\r\n    steps:\r\n    - name: Checkout Repository\r\n      uses: actions\/checkout@v3\r\n\r\n    - name: Deploy to Test Server\r\n      env:\r\n        REMOTE_PATH: [your remote path location]\r\n      if: startsWith(github.ref, 'refs\/tags\/') &amp;&amp; contains(github.ref, 'rc')\r\n      run: |\r\n        mkdir -p ~\/.ssh\r\n        echo \"${{ secrets.TEST_SSH_PRIVATE_KEY }}\" &gt; ~\/.ssh\/id_rsa\r\n        cd ~\/.ssh\r\n        chmod 600 id_rsa\r\n        ssh -o StrictHostKeyChecking=no -i ~\/.ssh\/id_rsa ${{ secrets.TEST_SSH_USERNAME }}@${{ secrets.TEST_SERVER }} 'echo \"${{secrets.REPO_DEPLOY_KEY}}\" &gt; ~\/.ssh\/gh_key &amp;&amp; chmod 600 ~\/.ssh\/gh_key &amp;&amp; eval `ssh-agent -s` &amp;&amp; ssh-add ~\/.ssh\/gh_key &amp;&amp; cd ${{ env.REMOTE_PATH }} &amp;&amp; git fetch --tags &amp;&amp; git checkout ${{ github.ref }} &amp;&amp; \/usr\/bin\/docker compose run --rm backend php yii migrate --interactive=0 &amp;&amp; \/usr\/bin\/docker compose run --rm backend php yii cache\/flush-all &amp;&amp; rm -f ~\/.ssh\/gh_key'\r\n<\/code><\/pre>\n<\/blockquote>\n<p>\u8fd9\u4e2a\u5de5\u4f5c\u6d41\u4f1a\u5148\u68c0\u51fa\u4f60\u7684\u4ee3\u7801\uff0c\u7136\u540e\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u5e76\u6267\u884c\u547d\u4ee4\u6765\u66f4\u65b0\u9879\u76ee\u3002\u4f60\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u8c03\u6574\u8fd9\u4e9b\u6b65\u9aa4\u3002<\/p>\n<p>\u5728\u521b\u5efa\u5de5\u4f5c\u6d41\u6587\u4ef6\u65f6\uff0c\u4f60\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff1a<\/p>\n<ul>\n<li>\u5de5\u4f5c\u6d41\u6ca1\u6709\u89e6\u53d1\u3002\u8bf7\u786e\u8ba4\u6587\u4ef6\u4f4d\u4e8e <code>.github\/workflows\/main.yml<\/code>\u3002<\/li>\n<li>YAML \u8bed\u6cd5\u9519\u8bef\u3002\u8bf7\u786e\u4fdd\u6bcf\u4e00\u7ea7\u7f29\u8fdb\u4f7f\u7528\u4e24\u4e2a\u7a7a\u683c\u3002<\/li>\n<li>\u627e\u4e0d\u5230\u547d\u4ee4\u3002\u8bf7\u68c0\u67e5 GitHub runner \u4e0a\u662f\u5426\u5b89\u88c5\u4e86\u6240\u6709\u6240\u9700\u5de5\u5177\u3002<\/li>\n<\/ul>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u53cd\u590d\u68c0\u67e5\u6587\u4ef6\u4f4d\u7f6e\u548c\u8bed\u6cd5\u6765\u907f\u514d\u8fd9\u4e9b\u95ee\u9898\u3002<\/p>\n<h3>\u8bbe\u7f6e\u73af\u5883\u4e0e Secrets<\/h3>\n<p>\u5728\u81ea\u52a8\u90e8\u7f72\u4ee3\u7801\u65f6\uff0c\u4f60\u5fc5\u987b\u4fdd\u8bc1\u670d\u52a1\u5668\u5b89\u5168\u3002\u7edd\u4e0d\u8981\u628a\u5bc6\u7801\u6216\u79c1\u94a5\u76f4\u63a5\u5199\u8fdb\u5de5\u4f5c\u6d41\u6587\u4ef6\u3002\u76f8\u53cd\uff0c\u4f60\u5e94\u8be5\u4f7f\u7528 GitHub Secrets \u6765\u5b58\u50a8\u654f\u611f\u4fe1\u606f\u3002<\/p>\n<p>\u8fdb\u5165\u4f60\u7684\u4ed3\u5e93\u8bbe\u7f6e\u9875\u9762\uff0c\u627e\u5230 \u201cSecrets\u201d \u90e8\u5206\u3002\u6dfb\u52a0 SSH \u79c1\u94a5\u3001\u670d\u52a1\u5668\u7528\u6237\u540d\u4ee5\u53ca\u5176\u4ed6\u654f\u611f\u4fe1\u606f\u3002\u5728\u5de5\u4f5c\u6d41\u6587\u4ef6\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>${{ secrets.YOUR_SECRET_NAME }}<\/code> \u7684\u5f62\u5f0f\u6765\u5f15\u7528\u8fd9\u4e9b Secrets\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u4f60\u7684\u6570\u636e\u5b89\u5168\u4e14\u4e0d\u4f1a\u66b4\u9732\u3002<\/p>\n<p>\u4f60\u8fd8\u53ef\u4ee5\u4e3a\u6d4b\u8bd5\u73af\u5883\u548c\u751f\u4ea7\u73af\u5883\u5206\u522b\u8bbe\u7f6e\u4e0d\u540c\u7684 Environment\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u4f60\u53ef\u4ee5\u5148\u628a\u4ee3\u7801\u81ea\u52a8\u90e8\u7f72\u5230\u6d4b\u8bd5\u670d\u52a1\u5668\uff1b\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u518d\u90e8\u7f72\u5230\u6b63\u5f0f\u670d\u52a1\u5668\u3002\u501f\u52a9 GitHub Actions\uff0c\u4f60\u53ef\u4ee5\u7cbe\u786e\u63a7\u5236\u4ee3\u7801\u5728\u4f55\u65f6\u3001\u90e8\u7f72\u5230\u54ea\u91cc\u3002<\/p>\n<p>\u6309\u7167\u8fd9\u4e9b\u6b65\u9aa4\u64cd\u4f5c\u540e\uff0c\u6bcf\u6b21\u4f60\u63a8\u9001\u53d8\u66f4\u65f6\uff0c\u4ee3\u7801\u90fd\u4f1a\u81ea\u52a8\u90e8\u7f72\u3002\u4f60\u5c06\u8282\u7701\u65f6\u95f4\u3001\u51cf\u5c11\u9519\u8bef\uff0c\u5e76\u8ba9\u6574\u4e2a\u90e8\u7f72\u6d41\u7a0b\u66f4\u52a0\u7a33\u56fa\u3001\u5b89\u5168\u3002<\/p>\n<h2><strong>\u4f7f\u7528 Webhook \u5b9e\u73b0\u81ea\u52a8\u90e8\u7f72<\/strong><\/h2>\n<p>Webhook \u662f\u5b9e\u73b0\u90e8\u7f72\u81ea\u52a8\u5316\u7684\u4e00\u79cd\u975e\u5e38\u6709\u529b\u7684\u65b9\u5f0f\u3002\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u4f60\u7684\u670d\u52a1\u5668\u53ef\u4ee5\u76d1\u542c\u6765\u81ea GitHub \u7684\u4e8b\u4ef6\uff0c\u5e76\u5728\u6536\u5230\u901a\u77e5\u540e\u81ea\u52a8\u66f4\u65b0\u4ee3\u7801\u3002\u5982\u679c\u4f60\u5e0c\u671b\u5728\u81ea\u5df1\u7684\u670d\u52a1\u5668\u4e0a\u638c\u63a7\u6574\u4e2a\u90e8\u7f72\u6d41\u7a0b\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u975e\u5e38\u9002\u5408\u3002<\/p>\n<h3>\u7f16\u5199 Webhook \u76d1\u542c\u811a\u672c<\/h3>\n<p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u4e00\u4e2a\u7528\u4e8e\u76d1\u542c Webhook \u8bf7\u6c42\u7684\u811a\u672c\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 PHP\u3001Node.js\uff0c\u6216\u5176\u4ed6\u80fd\u591f\u5904\u7406 HTTP POST \u8bf7\u6c42\u7684\u8bed\u8a00\u3002\u8fd9\u4e2a\u811a\u672c\u4f1a\u5728\u4f60\u5411\u4ed3\u5e93\u63a8\u9001\u53d8\u66f4\u65f6\u63a5\u6536\u6765\u81ea GitHub \u7684\u901a\u77e5\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u5957\u5178\u578b\u7684 Webhook \u76d1\u542c\u5668\u914d\u7f6e\u6d41\u7a0b\uff1a<\/p>\n<ol>\n<li>\u5c06\u4f60\u7684 Git \u4ed3\u5e93\u5206\u522b\u514b\u9686\u5230\u751f\u4ea7\u73af\u5883\u548c\u9884\u53d1\u5e03\u73af\u5883\u5bf9\u5e94\u7684\u76ee\u5f55\u4e2d\u3002<\/li>\n<li>\u4e3a\u6bcf\u4e2a\u73af\u5883\u521b\u5efa Bash \u811a\u672c\uff0c\u5e76\u8d4b\u4e88\u8fd9\u4e9b\u811a\u672c\u6267\u884c\u6743\u9650\uff0c\u4ee5\u4fbf\u81ea\u52a8\u8fd0\u884c\u3002<\/li>\n<li>\u7f16\u5199\u5904\u7406 Webhook \u4e8b\u4ef6\u7684\u4ee3\u7801\u3002\u5f88\u591a\u5f00\u53d1\u8005\u4f1a\u5728 Node.js \u4e2d\u4f7f\u7528 <code>github-webhook-handler<\/code> \u5305\uff0c\u4f46\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528 PHP \u6216 Python\u3002<\/li>\n<li>\u5728 GitHub \u4ed3\u5e93\u8bbe\u7f6e\u4e2d\u914d\u7f6e Webhook URL\u3002\u9009\u62e9\u7528\u4e8e\u89e6\u53d1 Webhook \u7684\u4e8b\u4ef6\uff0c\u4f8b\u5982 push \u6216 pull request\u3002<\/li>\n<li>\u6d4b\u8bd5\u5e76\u9a8c\u8bc1\u4f60\u7684\u914d\u7f6e\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 PM2 \u8fd9\u6837\u7684\u8fdb\u7a0b\u7ba1\u7406\u5de5\u5177\u6765\u76d1\u63a7\u811a\u672c\uff0c\u5e76\u901a\u8fc7\u65e5\u5fd7\u6392\u67e5\u9519\u8bef\u3002<\/li>\n<\/ol>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684 PHP Webhook \u76d1\u542c\u811a\u672c\u793a\u4f8b\uff1a<\/p>\n<pre><code>&lt;?php\r\n$secret = 'your_webhook_secret';\r\n$payload = file_get_contents('php:\/\/input');\r\n$signature = 'sha1=' . hash_hmac('sha1', $payload, $secret);\r\n\r\nif (hash_equals($signature, $_SERVER['HTTP_X_HUB_SIGNATURE'])) {\r\n    \/\/ Run your deployment script\r\n    shell_exec('\/path\/to\/deploy.sh');\r\n    http_response_code(200);\r\n    echo \"Deployment triggered.\";\r\n} else {\r\n    http_response_code(403);\r\n    echo \"Invalid signature.\";\r\n}\r\n?&gt;\r\n<\/code><\/pre>\n<blockquote><p><strong>\u63d0\u793a\uff1a<\/strong>\u4e00\u5b9a\u8981\u4f7f\u7528 GitHub \u63d0\u4f9b\u7684\u793a\u4f8b payload \u6d4b\u8bd5\u4f60\u7684 Webhook \u76d1\u542c\u5668\u3002\u8fd9\u6837\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u5f71\u54cd\u7ebf\u4e0a\u7ad9\u70b9\u4e4b\u524d\u53d1\u73b0\u9519\u8bef\u3002<\/p><\/blockquote>\n<h3>\u914d\u7f6e GitHub Webhook<\/h3>\n<p>\u521b\u5efa\u597d\u76d1\u542c\u811a\u672c\u4e4b\u540e\uff0c\u4f60\u8fd8\u9700\u8981\u5728 GitHub \u4ed3\u5e93\u4e2d\u914d\u7f6e Webhook\u3002\u8fd9\u4e00\u6b65\u4f1a\u628a\u4f60\u7684\u4ed3\u5e93\u548c\u670d\u52a1\u5668\u8fde\u63a5\u8d77\u6765\uff0c\u5e76\u544a\u8bc9 GitHub \u5e94\u8be5\u628a\u901a\u77e5\u53d1\u9001\u5230\u54ea\u91cc\u3002<\/p>\n<p>\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e\u4f60\u7684 Webhook\uff1a<\/p>\n<ol>\n<li>\u7f16\u5199\u5904\u7406 Webhook \u4e8b\u4ef6\u7684\u4ee3\u7801\uff0c\u5e76\u786e\u4fdd\u4f60\u7684\u670d\u52a1\u5668\u62e5\u6709\u4e00\u4e2a GitHub \u53ef\u4ee5\u8bbf\u95ee\u7684\u516c\u7f51 URL\u3002<\/li>\n<li>\u5982\u679c\u4f60\u60f3\u7b80\u5316\u4e8b\u4ef6\u5904\u7406\u6d41\u7a0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u50cf <code>github-webhook-handler<\/code> \u8fd9\u6837\u7684\u5305\u3002<\/li>\n<li>\u8fd0\u884c\u4f60\u7684\u670d\u52a1\u7a0b\u5e8f\uff0c\u8ba9\u5b83\u5f00\u59cb\u76d1\u542c\u4f20\u5165\u7684 Webhook \u8bf7\u6c42\u3002<\/li>\n<li>\u8fdb\u5165 GitHub \u4ed3\u5e93\u8bbe\u7f6e\u9875\u9762\uff0c\u65b0\u589e\u4e00\u4e2a Webhook\uff0c\u5e76\u586b\u5199\u76d1\u542c\u811a\u672c\u7684 URL\u3002<\/li>\n<li>\u9009\u62e9\u5e94\u8be5\u89e6\u53d1 Webhook \u7684\u4e8b\u4ef6\uff0c\u4f8b\u5982 push \u4e8b\u4ef6\u6216 pull request\u3002<\/li>\n<\/ol>\n<p>\u5728\u4f7f\u7528 Webhook \u65f6\uff0c\u5b89\u5168\u6027\u975e\u5e38\u91cd\u8981\u3002\u4f60\u9700\u8981\u786e\u4fdd\u53ea\u6709 GitHub \u624d\u80fd\u89e6\u53d1\u670d\u52a1\u5668\u4e0a\u7684\u90e8\u7f72\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5173\u952e\u7684\u5b89\u5168\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<div class=\"qc-default-table-wrapper \">\n<table style=\"min-width: 50px;\">\n<colgroup>\n<col style=\"min-width: 25px;\" \/>\n<col style=\"min-width: 25px;\" \/> <\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\">\u5b89\u5168\u6ce8\u610f\u4e8b\u9879<\/th>\n<th colspan=\"1\" rowspan=\"1\">\u8bf4\u660e<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\u4f7f\u7528\u5bc6\u94a5\u8fdb\u884c\u9a8c\u8bc1<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u4e3a\u4f60\u7684 Webhook \u6dfb\u52a0\u4e00\u4e2a\u5bc6\u94a5\uff0c\u4ee5\u5e2e\u52a9\u786e\u8ba4\u8bf7\u6c42\u786e\u5b9e\u6765\u81ea GitHub\u3002<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">Webhook URL \u7684\u53ef\u8bbf\u95ee\u6027<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u8bf7\u59a5\u5584\u4fdd\u62a4\u4f60\u7684 Webhook URL\uff0c\u4e0d\u8981\u968f\u610f\u516c\u5f00\uff0c\u4ee5\u9632\u6b62\u672a\u7ecf\u6388\u6743\u7684\u8bbf\u95ee\u3002<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\u4f7f\u7528 HTTPS<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u914d\u7f6e HTTPS\uff0c\u4ee5\u52a0\u5bc6 GitHub \u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u901a\u4fe1\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<blockquote><p><strong>\u6ce8\u610f\uff1a<\/strong>\u5982\u679c\u4f60\u4f7f\u7528\u4e86\u5bc6\u94a5\uff0c\u8bf7\u540c\u6b65\u66f4\u65b0\u76d1\u542c\u811a\u672c\uff0c\u4ee5\u6821\u9a8c\u4f20\u5165\u8bf7\u6c42\u7684\u7b7e\u540d\u3002\u8fd9\u4f1a\u589e\u52a0\u4e00\u5c42\u989d\u5916\u7684\u5b89\u5168\u4fdd\u62a4\u3002<\/p><\/blockquote>\n<p>\u5b8c\u6210\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0c\u6bcf\u6b21\u4f60\u5411\u4ed3\u5e93\u63a8\u9001\u4ee3\u7801\uff0c\u670d\u52a1\u5668\u90fd\u4f1a\u81ea\u52a8\u90e8\u7f72\u6700\u65b0\u7248\u672c\u3002\u8fd9\u6837\u7684\u914d\u7f6e\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\uff0c\u5e76\u51cf\u5c11\u624b\u52a8\u64cd\u4f5c\u5e26\u6765\u7684\u98ce\u9669\u3002<\/p>\n<h2><strong>\u5b89\u5168\u7684\u670d\u52a1\u5668\u8bbf\u95ee\u4e0e SSH \u5bc6\u94a5<\/strong><\/h2>\n<p>\u914d\u7f6e\u5b89\u5168\u8bbf\u95ee\u673a\u5236\uff0c\u662f\u4efb\u4f55\u81ea\u52a8\u5316\u90e8\u7f72\u6d41\u7a0b\u4e2d\u90fd\u975e\u5e38\u5173\u952e\u7684\u4e00\u90e8\u5206\u3002\u4f60\u9700\u8981\u786e\u4fdd\u53ea\u6709\u53d7\u4fe1\u4efb\u7684\u7528\u6237\u548c\u7cfb\u7edf\u80fd\u591f\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002\u4f7f\u7528 SSH \u5bc6\u94a5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b9e\u73b0\u5b89\u5168\u3001\u514d\u5bc6\u7684\u8fde\u63a5\u3002<\/p>\n<h3>\u751f\u6210 SSH \u5bc6\u94a5<\/h3>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u751f\u6210 SSH \u5bc6\u94a5\uff0c\u8ba9\u90e8\u7f72\u6d41\u7a0b\u5b89\u5168\u5730\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002\u8bf7\u6309\u4ee5\u4e0b\u6b65\u9aa4\u4e3a\u90e8\u7f72\u7528\u6237\u914d\u7f6e SSH \u5bc6\u94a5\uff1a<\/p>\n<ol>\n<li>\u5728\u672c\u5730\u673a\u5668\u4e0a\u751f\u6210\u4e00\u5bf9\u65b0\u7684 SSH \u5bc6\u94a5\uff1a\n<pre><code>ssh-keygen -t ed25519 -f ~\/.ssh\/blog_deployer<\/code><\/pre>\n<\/li>\n<li>\u5728\u670d\u52a1\u5668\u4e0a\u521b\u5efa\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u90e8\u7f72\u7684\u7528\u6237\uff1a\n<pre><code>useradd blog-deployer<\/code><\/pre>\n<\/li>\n<li>\u9501\u5b9a\u8be5\u7528\u6237\u7684\u5bc6\u7801\uff0c\u9632\u6b62\u5176\u901a\u8fc7\u5bc6\u7801\u767b\u5f55\uff1a\n<pre><code>passwd -l blog-deployer<\/code><\/pre>\n<\/li>\n<li>\u4e3a\u65b0\u7528\u6237\u521b\u5efa\u4e00\u4e2a <code>.ssh<\/code> \u76ee\u5f55\uff1a\n<pre><code>mkdir -p \/home\/blog-deployer\/.ssh<\/code><\/pre>\n<\/li>\n<li>\u5c06\u516c\u94a5\u6dfb\u52a0\u5230 <code>authorized_keys<\/code> \u6587\u4ef6\u4e2d\uff1a\n<pre><code>nano \/home\/blog-deployer\/.ssh\/authorized_keys<\/code><\/pre>\n<\/li>\n<li>\u4fee\u6539\u4e3b\u76ee\u5f55\u7684\u6240\u6709\u6743\uff1a\n<pre><code>chown -R blog-deployer:blog-deployer \/home\/blog-deployer<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>\u8fd9\u6837\u914d\u7f6e\u4e4b\u540e\uff0c\u5c31\u53ea\u6709\u4f60\u7684\u90e8\u7f72\u7cfb\u7edf\u624d\u80fd\u8fde\u63a5\u5230\u670d\u52a1\u5668\u5e76\u5c06\u9879\u76ee\u90e8\u7f72\u5230\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n<h3>\u8bbe\u7f6e\u6743\u9650<\/h3>\n<p>\u4f60\u5fc5\u987b\u8bbe\u7f6e\u6b63\u786e\u7684\u6743\u9650\uff0c\u624d\u80fd\u4fdd\u8bc1\u90e8\u7f72\u8fc7\u7a0b\u7684\u5b89\u5168\u3002\u5982\u679c\u6743\u9650\u914d\u7f6e\u4e0d\u5f53\uff0c\u653b\u51fb\u8005\u53ef\u80fd\u4f1a\u83b7\u5f97\u8bbf\u95ee\u6743\u9650\uff0c\u751a\u81f3\u7a83\u53d6\u6570\u636e\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6700\u4f73\u5b9e\u8df5\uff1a<\/p>\n<ul>\n<li>\u9650\u5236\u90e8\u7f72\u7528\u6237\u7684 SSH \u767b\u5f55\u80fd\u529b\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a\n<pre><code>restrict,pty,no-agent-forwarding,no-port-forwarding,no-X11-forwarding,command=\"\/usr\/local\/bin\/rrsync -wo \/var\/www\/blog\"\r\n<\/code><\/pre>\n<\/li>\n<li>\u9650\u5236\u90e8\u7f72\u7528\u6237\u53ef\u6267\u884c\u7684\u64cd\u4f5c\uff0c\u53ea\u5141\u8bb8\u6267\u884c\u90e8\u7f72\u6240\u9700\u7684\u6700\u5c0f\u6743\u9650\u64cd\u4f5c\u3002<\/li>\n<li>\u5c06 Secrets \u548c\u5bc6\u94a5\u4fdd\u5b58\u5728\u5b89\u5168\u7684\u4fdd\u7ba1\u5e93\u4e2d\uff0c\u5e76\u786e\u4fdd\u5176\u5728\u9759\u6001\u5b58\u50a8\u548c\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u90fd\u7ecf\u8fc7\u52a0\u5bc6\u3002<\/li>\n<li>\u5b9a\u671f\u5ba1\u8ba1\u5e76\u76d1\u63a7\u670d\u52a1\u5668\u8bbf\u95ee\u60c5\u51b5\u3002<\/li>\n<li>\u5b9a\u671f\u8f6e\u6362 SSH \u5bc6\u94a5\u548c\u5404\u7c7b\u654f\u611f\u51ed\u636e\u3002<\/li>\n<\/ul>\n<blockquote><p><strong>\u63d0\u793a\uff1a<\/strong>\u52a1\u5fc5\u68c0\u67e5 SSH \u5bc6\u94a5\u548c\u90e8\u7f72\u811a\u672c\u7684\u6743\u9650\u8bbe\u7f6e\u3002\u6743\u9650\u914d\u7f6e\u9519\u8bef\u53ef\u80fd\u4f1a\u5bfc\u81f4\u672a\u6388\u6743\u8bbf\u95ee\u3001\u6570\u636e\u6cc4\u9732\u6216\u88ab\u653b\u51fb\u3002<\/p><\/blockquote>\n<p>\u9075\u5faa\u8fd9\u4e9b\u6b65\u9aa4\u540e\uff0c\u4f60\u5c31\u80fd\u66f4\u597d\u5730\u4fdd\u62a4\u90e8\u7f72\u6d41\u6c34\u7ebf\uff0c\u5e76\u786e\u4fdd\u670d\u52a1\u5668\u5b89\u5168\u3002<\/p>\n<h2><strong>\u6d4b\u8bd5\u5e76\u90e8\u7f72\u4f60\u7684\u7f51\u7ad9<\/strong><\/h2>\n<h3>\u6267\u884c\u4e00\u6b21\u6d4b\u8bd5\u90e8\u7f72<\/h3>\n<p>\u5728\u5c06\u7f51\u7ad9\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u4e4b\u524d\uff0c\u4f60\u5e94\u5f53\u59cb\u7ec8\u5148\u8fdb\u884c\u6d4b\u8bd5\u3002\u6d4b\u8bd5\u90e8\u7f72\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5c3d\u65e9\u53d1\u73b0\u95ee\u9898\uff0c\u5e76\u786e\u4fdd\u6574\u4e2a\u6d41\u7a0b\u6309\u9884\u671f\u8fd0\u884c\u3002\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff0c\u4ece GitHub \u5411\u4f60\u7684\u79c1\u6709\u670d\u52a1\u5668\u6267\u884c\u4e00\u6b21\u6d4b\u8bd5\u90e8\u7f72\uff1a<\/p>\n<ol>\n<li>\u51c6\u5907\u4f60\u7684\u670d\u52a1\u5668\u3002\u4f7f\u7528\u4e00\u4e2a\u5e72\u51c0\u7684 Linux \u7cfb\u7edf\uff0c\u4f8b\u5982 Ubuntu 22.04 \u6216\u66f4\u9ad8\u7248\u672c\u3002\u786e\u4fdd\u670d\u52a1\u5668\u81f3\u5c11\u5177\u5907 4GB \u5185\u5b58\u548c 2 \u4e2a CPU \u6838\u5fc3\uff0c\u5e76\u786e\u8ba4\u5b83\u53ef\u4ee5\u8bbf\u95ee\u4e92\u8054\u7f51\u3002<\/li>\n<li>\u4ece GitHub \u514b\u9686\u4f60\u7684\u90e8\u7f72\u4ed3\u5e93\u3002\u4f7f\u7528\u6b63\u786e\u7684 SSH \u5bc6\u94a5\u6216 HTTPS \u65b9\u5f0f\u6765\u4fdd\u969c\u8bbf\u95ee\u5b89\u5168\u3002<\/li>\n<li>\u9009\u62e9\u4f60\u7684\u5b89\u88c5\u65b9\u5f0f\u3002\u5982\u679c\u4f60\u60f3\u5feb\u901f\u5b89\u88c5\uff0c\u53ef\u8fd0\u884c\uff1a\n<pre><code>.\/scripts\/install-fast.sh<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u9700\u8981\u81ea\u5b9a\u4e49\u5b89\u88c5\uff0c\u8bf7\u5148\u51c6\u5907\u597d\u914d\u7f6e\u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528 Helm \u5b89\u88c5\u547d\u4ee4\u3002<\/li>\n<li>\u89e6\u53d1\u90e8\u7f72\u3002\u5411\u4ed3\u5e93\u63a8\u9001\u4e00\u6b21\u53d8\u66f4\uff0c\u6216\u8005\u624b\u52a8\u89e6\u53d1\u5de5\u4f5c\u6d41\u6216 Webhook\u3002<\/li>\n<li>\u67e5\u770b\u670d\u52a1\u5668\u65e5\u5fd7\uff0c\u786e\u8ba4\u90e8\u7f72\u811a\u672c\u5df2\u7ecf\u8fd0\u884c\u5e76\u6210\u529f\u66f4\u65b0\u6587\u4ef6\u3002<\/li>\n<\/ol>\n<blockquote><p>\u63d0\u793a\uff1a\u5728\u5c06\u7f51\u7ad9\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u4e4b\u524d\uff0c\u8bf7\u52a1\u5fc5\u5148\u5728\u9884\u53d1\u5e03\u670d\u52a1\u5668\u4e0a\u6d4b\u8bd5\u3002\u8fd9\u80fd\u591f\u4fdd\u62a4\u4f60\u7684\u7ebf\u4e0a\u7ad9\u70b9\u5b89\u5168\u3002<\/p><\/blockquote>\n<h3>\u6392\u67e5\u5e38\u89c1\u95ee\u9898<\/h3>\n<p>\u5728\u90e8\u7f72\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4e0b\u8868\u5217\u51fa\u4e86\u5e38\u89c1\u9519\u8bef\u3001\u6210\u56e0\u4ee5\u53ca\u9884\u9632\u63aa\u65bd\uff1a<\/p>\n<div class=\"qc-default-table-wrapper \">\n<table style=\"min-width: 100px;\">\n<colgroup>\n<col style=\"min-width: 25px;\" \/>\n<col style=\"min-width: 25px;\" \/>\n<col style=\"min-width: 25px;\" \/>\n<col style=\"min-width: 25px;\" \/> <\/colgroup>\n<tbody>\n<tr>\n<th colspan=\"1\" rowspan=\"1\">\u95ee\u9898<\/th>\n<th colspan=\"1\" rowspan=\"1\">\u9519\u8bef\u4fe1\u606f<\/th>\n<th colspan=\"1\" rowspan=\"1\">\u539f\u56e0<\/th>\n<th colspan=\"1\" rowspan=\"1\">\u9884\u9632\u63aa\u65bd<\/th>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\u6620\u5c04\u4e2d\u53d1\u73b0\u91cd\u590d\u952e<\/td>\n<td colspan=\"1\" rowspan=\"1\">duplicate key found in mapping<\/td>\n<td colspan=\"1\" rowspan=\"1\">YAML \u89e3\u6790\u5668\u66f4\u65b0<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u5728\u6a21\u677f\u4e2d\u4f7f\u7528\u552f\u4e00\u4e14\u63cf\u8ff0\u6e05\u6670\u7684\u547d\u540d<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\u627e\u4e0d\u5230 Secret<\/td>\n<td colspan=\"1\" rowspan=\"1\">Secret not found or variable is empty<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u8bed\u6cd5\u9519\u8bef<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u5728\u6a21\u677f\u4e2d\u5c55\u793a\u6b63\u786e\u7684\u4e0a\u4e0b\u6587\u8bed\u6cd5<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\u77e9\u9635\u7b56\u7565\u9519\u8bef<\/td>\n<td colspan=\"1\" rowspan=\"1\">Matrix not expanded, tests skipped<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u65e0\u6548\u7684\u77e9\u9635\u914d\u7f6e<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u5728\u6a21\u677f\u4e2d\u63d0\u4f9b\u4e00\u4e2a\u53ef\u6b63\u5e38\u5de5\u4f5c\u7684\u77e9\u9635\u793a\u4f8b<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\u4e0a\u4e0b\u6587\u8bed\u6cd5\u9519\u8bef<\/td>\n<td colspan=\"1\" rowspan=\"1\">Variable not interpolated, value is empty<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u5fd8\u8bb0\u4f7f\u7528 <code>${{ }}<\/code> \u5305\u88f9<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u5728\u6a21\u677f\u4e2d\u5c55\u793a\u6240\u6709\u4e0a\u4e0b\u6587\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\u6a21\u677f\u8fc7\u4e8e\u590d\u6742<\/td>\n<td colspan=\"1\" rowspan=\"1\">Contributor ignores template, issue incomplete<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u5305\u542b 20 \u4e2a\u4ee5\u4e0a\u5b57\u6bb5<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u4fdd\u6301\u6280\u80fd\u7c7b\u6a21\u677f\u7b80\u6d01\uff08\u6700\u591a 5-8 \u4e2a\u5b57\u6bb5\uff09<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\u7f3a\u5c11\u5fc5\u586b\u5b57\u6bb5<\/td>\n<td colspan=\"1\" rowspan=\"1\">Issue incomplete, missing key information<\/td>\n<td colspan=\"1\" rowspan=\"1\">Markdown \u6a21\u677f\u7f3a\u5c11\u6821\u9a8c<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u4f7f\u7528\u5e26\u6709 <code>required: true<\/code> \u7684 YAML \u6a21\u677f<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\u5de5\u4f5c\u6d41\u91cd\u590d<\/td>\n<td colspan=\"1\" rowspan=\"1\">Wasted CI time, high maintenance overhead<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u4e3a CI \/ CodeQL \/ dependency review \u5206\u522b\u8bbe\u7f6e\u4e86\u72ec\u7acb\u5de5\u4f5c\u6d41<\/td>\n<td colspan=\"1\" rowspan=\"1\">\u5728\u6a21\u677f\u4e2d\u63d0\u4f9b\u6574\u5408\u65b9\u6848<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u5982\u679c\u4f60\u9047\u5230\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5 YAML \u6587\u4ef6\u4e2d\u662f\u5426\u5b58\u5728\u95ee\u9898\u3002\u786e\u4fdd\u6240\u6709 Secrets \u548c\u53d8\u91cf\u90fd\u5df2\u6b63\u786e\u8bbe\u7f6e\u3002\u67e5\u770b\u90e8\u7f72\u65e5\u5fd7\u901a\u5e38\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5feb\u901f\u5b9a\u4f4d\u539f\u56e0\u3002\u5c3d\u65e9\u4fee\u590d\u8fd9\u4e9b\u5c0f\u95ee\u9898\uff0c\u4f1a\u8ba9\u4f60\u7684\u90e8\u7f72\u6d41\u7a0b\u66f4\u52a0\u987a\u7545\u53ef\u9760\u3002<\/p>\n<div class=\"qc-divider-wrapper\">\n<div class=\"qc-divider\" style=\"border-top-style: solid; width: 100%; border-top-color: #d1d1d1;\"><\/div>\n<\/div>\n<p>\u4f60\u5e94\u8be5\u7ecf\u5e38\u6d4b\u8bd5\u90e8\u7f72\u6d41\u6c34\u7ebf\uff0c\u5e76\u4fdd\u6301\u90e8\u7f72\u811a\u672c\u7684\u5b89\u5168\u6027\u3002\u4f60\u8fd8\u53ef\u4ee5\u5c1d\u8bd5\u4e00\u4e9b\u66f4\u9ad8\u7ea7\u7684\u5de5\u5177\uff0c\u4f8b\u5982 AWS Code Deploy\u3001Heroku\u3001Zeit Now\u3001Netlify\u3001Travis CI\u3001CircleCI\u3001AWS ECS\u3001Docker Swarm \u548c Kubernetes\u3002\u5bf9\u4e8e\u79fb\u52a8\u7aef\u9879\u76ee\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528 Bitrise \u548c Firebase\u3002\u4e3a\u4f60\u7684 GitHub \u96c6\u6210\u589e\u52a0\u901a\u77e5\u7cfb\u7edf\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u76d1\u63a7\u90e8\u7f72\u72b6\u6001\u3002\u8fd9\u4e9b\u5de5\u5177\u80fd\u591f\u5e2e\u52a9\u4f60\u7ba1\u7406 Git \u5de5\u4f5c\u6d41\uff0c\u5e76\u8ba9\u4f60\u7684\u4e91\u670d\u52a1\u5668\u4fdd\u6301\u6700\u65b0\u3002\u81ea\u52a8\u5316\u68c0\u67e5\u3001\u76d1\u63a7\u5de5\u5177\u548c\u53ef\u89c6\u5316\u4eea\u8868\u76d8\uff0c\u4f1a\u4e3a\u4f60\u5e26\u6765\u66f4\u5f3a\u7684\u63a7\u5236\u529b\u4e0e\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u4f60\u628a\u4ee3\u7801\u4ece GitHub \u81ea\u52a8\u90e8\u7f72\u5230\u81ea\u5df1\u7684\u670d\u52a1\u5668\u65f6\uff0c\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\u5e76\u907f\u514d\u51fa\u9519\u3002\u90e8\u7f72\u81ea\u52a8\u5316\u80fd\u591f\u5e26\u6765\u66f4\u5feb\u7684\u53cd\u9988\uff0c\u4e5f\u6709\u52a9\u4e8e\u56e2\u961f\u66f4\u9ad8\u6548\u5730\u534f\u4f5c\u3002\u501f\u52a9 GitHub Actions\u3001Webhook \u548c\u90e8\u7f72\u811a\u672c\u7b49\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u51cf\u5c11\u4eba\u4e3a\u5931\u8bef\uff0c\u8ba9\u6574\u4e2a\u6d41\u7a0b\u66f4\u52a0\u7a33\u5b9a\u53ef\u9760\u3002\u5373\u4f7f\u4f60\u53ea\u638c\u63e1\u4e86 GitHub \u548c\u670d\u52a1\u5668\u7ba1\u7406\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u4e5f\u80fd\u642d\u5efa\u8fd9\u5957\u5de5\u4f5c\u6d41\uff0c\u5e76\u5f88\u5feb\u770b\u5230\u6539\u8fdb\u6548\u679c\u3002 \u5173\u952e\u8981\u70b9 \u5c06\u4ee3\u7801\u90e8\u7f72\u81ea\u52a8\u5316\u53ef\u4ee5\u8282\u7701\u65f6\u95f4\u5e76\u51cf\u5c11\u9519\u8bef\u3002\u4f7f\u7528 GitHub Actions \u548c Webhook \u7b49\u5de5\u5177\uff0c\u53ef\u4ee5\u8ba9\u6d41\u7a0b\u66f4\u52a0\u987a\u7545\u3002 \u51c6\u5907\u597d\u5fc5\u8981\u7684\u5de5\u5177\u548c\u8d26\u6237\uff0c\u5305\u62ec GitHub \u4ed3\u5e93\u3001\u4e91\u670d\u52a1\u5668\u4ee5\u53ca\u90e8\u7f72\u811a\u672c\u3002\u8fd9\u4e9b\u57fa\u7840\u914d\u7f6e\u662f\u6210\u529f\u5b9e\u73b0\u81ea\u52a8\u5316\u7684\u5173\u952e\u3002 \u901a\u8fc7 SSH \u5bc6\u94a5\u5b9e\u73b0\u514d\u5bc6\u8bbf\u95ee\uff0c\u4fdd\u969c\u670d\u52a1\u5668\u5b89\u5168\u3002\u8fd9\u80fd\u786e\u4fdd\u53ea\u6709\u53d7\u4fe1\u4efb\u7684\u7cfb\u7edf\u53ef\u4ee5\u8fde\u63a5\u5230\u4f60\u7684\u670d\u52a1\u5668\u3002 \u5728\u6b63\u5f0f\u4e0a\u7ebf\u524d\uff0c\u5148\u5728\u9884\u53d1\u5e03\u670d\u52a1\u5668\u4e0a\u6d4b\u8bd5\u90e8\u7f72\u6d41\u7a0b\u3002\u8fd9\u6837\u53ef\u4ee5\u53ca\u65e9\u53d1\u73b0\u95ee\u9898\uff0c\u4fdd\u62a4\u751f\u4ea7\u73af\u5883\u3002 \u4f7f\u7528 GitHub Secrets \u5b89\u5168\u5b58\u50a8\u654f\u611f\u4fe1\u606f\u3002\u8fd9\u53ef\u4ee5\u8ba9\u5bc6\u7801\u548c\u5bc6\u94a5\u4e0d\u4f1a\u66b4\u9732\u5728\u5de5\u4f5c\u6d41\u6587\u4ef6\u4e2d\u3002 \u81ea\u52a8\u90e8\u7f72\u7684\u524d\u7f6e\u6761\u4ef6 \u6240\u9700\u5de5\u5177\u4e0e\u8d26\u6237 \u5728\u5f00\u59cb\u8bbe\u7f6e\u81ea\u52a8\u90e8\u7f72\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u51c6\u5907\u4e00\u4e9b\u5fc5\u8981\u7684\u5de5\u5177\u548c\u8d26\u6237\u3002\u5b83\u4eec\u5c06\u5e2e\u52a9\u4f60\u628a GitHub \u4e0a\u7684\u4ee3\u7801\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u5e76\u8ba9\u6574\u4e2a\u6d41\u7a0b\u66f4\u52a0\u987a\u7545\u3002 \u5728\u7ebf\u8fdc\u7a0b\u4ed3\u5e93\uff1a\u4f60\u9700\u8981\u4e00\u4e2a GitHub \u8d26\u6237\uff0c\u5e76\u62e5\u6709\u4e00\u4e2a\u5b58\u653e\u9879\u76ee\u4ee3\u7801\u7684\u4ed3\u5e93\u3002 \u672c\u5730 Git \u4ed3\u5e93\uff1a\u5728\u4f60\u7684\u7535\u8111\u4e0a\u914d\u7f6e\u4e00\u4e2a\u672c\u5730 Git \u4ed3\u5e93\uff0c\u7528\u4e8e\u7ba1\u7406\u4ee3\u7801\u53d8\u66f4\u3002 \u4e91\u670d\u52a1\u5668\uff1a\u9009\u62e9\u4e00\u4e2a\u4e91\u670d\u52a1\u5668\u63d0\u4f9b\u5546\uff0c\u4f8b\u5982 Amazon EC2 \u6216 Rackspace\u3002\u4f60\u7684\u7f51\u7ad9\u6216\u5e94\u7528\u5c06\u8fd0\u884c\u5728\u8fd9\u91cc\u3002 \u90e8\u7f72\u811a\u672c\uff1a\u7f16\u5199\u4e00\u4e2a\u90e8\u7f72\u811a\u672c\uff0c\u4f8b\u5982 deploy.php\uff0c\u7528\u4e8e\u62c9\u53d6 GitHub \u4e0a\u7684\u6700\u65b0\u4ee3\u7801\u3002 \u670d\u52a1\u5668\u4e0a\u5b89\u88c5 Git\uff1a\u786e\u4fdd\u4f60\u7684\u670d\u52a1\u5668\u5df2\u5b89\u88c5 Git\uff0c\u5e76\u4e14\u7248\u672c\u4e3a\u6700\u65b0\u3002 SSH \u5bc6\u94a5\u8bbe\u7f6e\uff1a\u5728\u670d\u52a1\u5668\u4e0a\u751f\u6210 SSH \u5bc6\u94a5\uff0c\u4ee5\u5b9e\u73b0\u4e0e [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":31778,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[62],"tags":[11179,11180,265],"class_list":["post-31782","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hong-kong-dedicated-server-sc","tag-github-auto-deployment","tag-github-actions","tag-265"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u5982\u4f55\u4f7f\u7528 GitHub \u5c06\u4ee3\u7801\u90e8\u7f72\u5230\u4f60\u7684\u670d\u52a1\u5668<\/title>\n<meta name=\"description\" content=\"\u4f7f\u7528 GitHub Actions \u6216 Webhook \u5c06\u4ee3\u7801\u81ea\u52a8\u90e8\u7f72\u5230\u4f60\u81ea\u5df1\u7684\u670d\u52a1\u5668\u3002\u7b80\u5316\u66f4\u65b0\u6d41\u7a0b\u3001\u51cf\u5c11\u9519\u8bef\uff0c\u5e76\u63d0\u5347\u5de5\u4f5c\u6d41\u5b89\u5168\u6027\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/posts\/31782\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"company\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u4f7f\u7528 GitHub \u5c06\u4ee3\u7801\u90e8\u7f72\u5230\u4f60\u7684\u670d\u52a1\u5668\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/posts\/31782\" \/>\n<meta property=\"og:site_name\" content=\"\u65b0\u5929\u57df\u4e92\u8054\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-30T03:14:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-30T03:19:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/04\/sim-blog-2026-04-30-blogA.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"619\" \/>\n\t<meta property=\"og:image:height\" content=\"340\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u4f7f\u7528 GitHub \u5c06\u4ee3\u7801\u90e8\u7f72\u5230\u4f60\u7684\u670d\u52a1\u5668","description":"\u4f7f\u7528 GitHub Actions \u6216 Webhook \u5c06\u4ee3\u7801\u81ea\u52a8\u90e8\u7f72\u5230\u4f60\u81ea\u5df1\u7684\u670d\u52a1\u5668\u3002\u7b80\u5316\u66f4\u65b0\u6d41\u7a0b\u3001\u51cf\u5c11\u9519\u8bef\uff0c\u5e76\u63d0\u5347\u5de5\u4f5c\u6d41\u5b89\u5168\u6027\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/posts\/31782","og_locale":"zh_CN","og_type":"company","og_title":"\u5982\u4f55\u4f7f\u7528 GitHub \u5c06\u4ee3\u7801\u90e8\u7f72\u5230\u4f60\u7684\u670d\u52a1\u5668","og_url":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/posts\/31782","og_site_name":"\u65b0\u5929\u57df\u4e92\u8054","article_published_time":"2026-04-30T03:14:13+00:00","article_modified_time":"2026-04-30T03:19:31+00:00","og_image":[{"width":619,"height":340,"url":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/04\/sim-blog-2026-04-30-blogA.jpg","type":"image\/jpeg"}],"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/#article","isPartOf":{"@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/"},"author":{"name":"Debbie Ng","@id":"https:\/\/simcentric.com\/tc\/#\/schema\/person\/0bfc8768eb7caacbfab4a0855d805626"},"headline":"\u5982\u4f55\u4f7f\u7528 GitHub \u5c06\u4ee3\u7801\u90e8\u7f72\u5230\u4f60\u7684\u670d\u52a1\u5668","datePublished":"2026-04-30T03:14:13+00:00","dateModified":"2026-04-30T03:19:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/"},"wordCount":209,"publisher":{"@id":"https:\/\/simcentric.com\/tc\/#organization"},"image":{"@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/04\/sim-blog-2026-04-30-blogA.jpg","keywords":["GitHub\u81ea\u52a8\u90e8\u7f72","GitHub \u64cd\u4f5c","\u9999\u6e2f\u670d\u52a1\u5668"],"articleSection":["\u9999\u6e2f\u670d\u52a1\u5668"],"inLanguage":"zh-CHN"},{"@type":"WebPage","@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/","url":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/","name":"\u5982\u4f55\u4f7f\u7528 GitHub \u5c06\u4ee3\u7801\u90e8\u7f72\u5230\u4f60\u7684\u670d\u52a1\u5668","isPartOf":{"@id":"https:\/\/simcentric.com\/tc\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/#primaryimage"},"image":{"@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/04\/sim-blog-2026-04-30-blogA.jpg","datePublished":"2026-04-30T03:14:13+00:00","dateModified":"2026-04-30T03:19:31+00:00","description":"\u4f7f\u7528 GitHub Actions \u6216 Webhook \u5c06\u4ee3\u7801\u81ea\u52a8\u90e8\u7f72\u5230\u4f60\u81ea\u5df1\u7684\u670d\u52a1\u5668\u3002\u7b80\u5316\u66f4\u65b0\u6d41\u7a0b\u3001\u51cf\u5c11\u9519\u8bef\uff0c\u5e76\u63d0\u5347\u5de5\u4f5c\u6d41\u5b89\u5168\u6027\u3002","breadcrumb":{"@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/#breadcrumb"},"inLanguage":"zh-CHN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/"]}]},{"@type":"ImageObject","inLanguage":"zh-CHN","@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/#primaryimage","url":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/04\/sim-blog-2026-04-30-blogA.jpg","contentUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2026\/04\/sim-blog-2026-04-30-blogA.jpg","width":619,"height":340,"caption":"GitHub \u4ee3\u7801\u90e8\u7f72\u5230\u670d\u52a1\u5668"},{"@type":"BreadcrumbList","@id":"https:\/\/www.simcentric.com\/sc\/hong-kong-dedicated-server-sc\/how-to-deploy-code-using-github-to-your-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.simcentric.com\/sc\/"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u4f7f\u7528 GitHub \u5c06\u4ee3\u7801\u90e8\u7f72\u5230\u4f60\u7684\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/simcentric.com\/tc\/#website","url":"https:\/\/simcentric.com\/tc\/","name":"Simcentric Solutions","description":"","publisher":{"@id":"https:\/\/simcentric.com\/tc\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/simcentric.com\/tc\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-CHN"},{"@type":"Organization","@id":"https:\/\/simcentric.com\/tc\/#organization","name":"Simcentric Solutions","url":"https:\/\/simcentric.com\/tc\/","logo":{"@type":"ImageObject","inLanguage":"zh-CHN","@id":"https:\/\/simcentric.com\/tc\/#\/schema\/logo\/image\/","url":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2023\/06\/sim-logo-2023.png","contentUrl":"https:\/\/www.simcentric.com\/wp-content\/uploads\/2023\/06\/sim-logo-2023.png","width":800,"height":222,"caption":"Simcentric Solutions"},"image":{"@id":"https:\/\/simcentric.com\/tc\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/simcentric.com\/tc\/#\/schema\/person\/0bfc8768eb7caacbfab4a0855d805626","name":"Debbie Ng","image":{"@type":"ImageObject","inLanguage":"zh-CHN","@id":"https:\/\/secure.gravatar.com\/avatar\/9f3420f60d27329ed6e921ddaae5206353d0a7414d1abb6f1f0b32b4fd849965?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9f3420f60d27329ed6e921ddaae5206353d0a7414d1abb6f1f0b32b4fd849965?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9f3420f60d27329ed6e921ddaae5206353d0a7414d1abb6f1f0b32b4fd849965?s=96&d=mm&r=g","caption":"Debbie Ng"}}]}},"_links":{"self":[{"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/posts\/31782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/comments?post=31782"}],"version-history":[{"count":3,"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/posts\/31782\/revisions"}],"predecessor-version":[{"id":31787,"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/posts\/31782\/revisions\/31787"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/media\/31778"}],"wp:attachment":[{"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/media?parent=31782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/categories?post=31782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simcentric.com\/sc\/wp-json\/wp\/v2\/tags?post=31782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}