{"id":1636,"date":"2022-06-14T18:10:17","date_gmt":"2022-06-14T10:10:17","guid":{"rendered":"https:\/\/qishiya.com\/?p=1636"},"modified":"2022-06-14T18:10:17","modified_gmt":"2022-06-14T10:10:17","slug":"github-action-%e4%b8%8e-laravel-%e8%87%aa%e5%8a%a8%e5%8f%91%e5%b8%83","status":"publish","type":"post","link":"https:\/\/qishiya.com\/?p=1636","title":{"rendered":"Github Action \u4e0e  Laravel \u81ea\u52a8\u53d1\u5e03"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4e0d\u60f3\u6bcf\u4e00\u6b21 push \u540e\uff0c\u624b\u5de5\u53bb\u670d\u52a1\u5668\u4e0a\u62c9\u53d6\u4ee3\u7801\uff0cgithub \u7684 action \u529f\u80fd\uff0c\u53ef\u4ee5\u81ea\u52a8 push \u5230\u6211\u7684\u670d\u52a1\u5668\uff0c\u8fd9\u771f\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u7701\u53bb\u4e86\u5f88\u591a\u9ebb\u70e6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4e3b\u8981\u662f\u53c2\u8003\u4e86\u8fd9\u4e2a\u6587\u7ae0 <a href=\"https:\/\/www.twilio.com\/blog\/build-test-deploy-laravel-application-github-actions\">Build, Test, and Deploy Your Laravel Application With GitHub Actions (twilio.com)<\/a> \u4f53\u9a8c\u4e0b\u6765\uff0c\u53d1\u73b0\u4e00\u4e2a\u4e0d\u8db3\u7684\u95ee\u9898\uff0c\u5c31\u662f ssh \u6743\u9650\u7684\u95ee\u9898\uff0c\u5fc5\u987b\u8981\u7ed9\u4e00\u4e2a ssh \u7684 private key \u624d\u53ef\u4ee5\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd8\u6709\u4e00\u79cd\u89e3\u51b3\u65b9\u6848 <a href=\"https:\/\/lorisleiva.com\/deploy-your-laravel-app-from-scratch\/install-and-configure-deployer\">Install and configure Deployer | Deploy your Laravel app from scratch | Loris (lorisleiva.com)<\/a> \u5c31\u662f\u7528 Deployer\uff0c\u4e2a\u4eba\u4e0d\u662f\u7279\u522b\u559c\u6b22\uff0c<a href=\"https:\/\/blog.logrocket.com\/how-to-create-a-ci-cd-for-a-laravel-application-using-github-actions\/\">How to create a CI\/CD for a Laravel application using GitHub Actions &#8211; LogRocket Blog<\/a> \u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6307\u5b9a\u5230\u67d0\u4e00\u4e2a\u7248\u672c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/tutu-1252436247.cos.ap-beijing.myqcloud.com\/2022\/06\/20220614np4Y5N.png\" alt=\"20220614np4Y5N\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u60f3\u6bcf\u4e00\u6b21 push \u540e\uff0c\u624b\u5de5\u53bb\u670d\u52a1\u5668\u4e0a\u62c9\u53d6\u4ee3\u7801\uff0cgithub \u7684 action \u529f\u80fd\uff0c\u53ef\u4ee5\u81ea\u52a8 push \u5230\u6211\u7684\u670d\u52a1\u5668\uff0c\u8fd9\u771f\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u7701\u53bb\u4e86\u5f88\u591a\u9ebb\u70e6\u3002 \u6211\u4e3b\u8981\u662f\u53c2\u8003\u4e86\u8fd9\u4e2a\u6587\u7ae0 Build, Test, and Deploy You &#8230; <a title=\"Github Action \u4e0e  Laravel \u81ea\u52a8\u53d1\u5e03\" class=\"read-more\" href=\"https:\/\/qishiya.com\/?p=1636\" aria-label=\"\u66f4\u591a Github Action \u4e0e  Laravel \u81ea\u52a8\u53d1\u5e03\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"templates\/template-full-width.php","format":"standard","meta":{"footnotes":""},"categories":[229],"tags":[384,373,383],"class_list":["post-1636","post","type-post","status-publish","format-standard","hentry","category-229","tag-ci-cd","tag-github","tag-laravel"],"_links":{"self":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1636","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1636"}],"version-history":[{"count":0,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1636\/revisions"}],"wp:attachment":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}