{"id":109381,"date":"2020-04-27T23:53:56","date_gmt":"2020-04-27T15:53:56","guid":{"rendered":"http:\/\/4563.org\/?p=109381"},"modified":"2020-04-27T23:53:56","modified_gmt":"2020-04-27T15:53:56","slug":"%e5%9f%ba%e4%ba%8e-github-action-%e7%9a%84-serverchanserver-%e9%85%b1-%e6%9d%a5%e4%ba%86","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=109381","title":{"rendered":"\u57fa\u4e8e Github Action \u7684 ServerChan(server \u9171) \u6765\u4e86!"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u57fa\u4e8e Github Action \u7684 ServerChan(server \u9171) \u6765\u4e86!               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : YakuMioto <\/span>  <span><i><\/i> 67<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>ServerChan Action (Server \u9171)<\/h1>\n<p> <\/p>\n<p>ServerChan Action(Server \u9171) \u5fae\u4fe1\u6d88\u606f\u901a\u77e5\u63d2\u4ef6<\/p>\n<h2>\u7b80\u4ecb<\/h2>\n<p>\u57fa\u4e8e ServerChan(Server \u9171) \u5c01\u88c5\u7684\u5fae\u4fe1\u6d88\u606f\u901a\u77e5\u63d2\u4ef6<\/p>\n<p>\u53ef\u7528\u4e8e\u6301\u7eed\u96c6\u6210\u7684\u901a\u77e5\u7b49.<\/p>\n<p>\u6211\u7684\u4f7f\u7528\u573a\u666f\u6709 <code>Hexo \u7684\u81ea\u52a8\u6784\u5efa\u6210\u529f\u901a\u77e5<\/code>\u7b49, (\u76ee\u524d\u522b\u7684\u8fd8\u6ca1\u52a0\u4e0a)&#8230;<\/p>\n<p>\u9879\u76ee\u5730\u5740: https:\/\/github.com\/yakumioto\/serverchan-action<\/p>\n<p>\u53f7\u5916, \u4e4b\u524d\u4e5f\u5b9e\u73b0\u8fc7 Drone CI \u7684 Server \u9171\u63d2\u4ef6, \u5730\u5740: https:\/\/github.com\/yakumioto\/drone-serverchan<\/p>\n<h2>\u6817\u5b50<\/h2>\n<p>\u660e\u6587 key \u914d\u7f6e, \u9002\u7528\u4e8e\u79c1\u6709\u4ed3\u5e93<\/p>\n<pre><code>--- name: serverchan-action  on: [push]  jobs:   serverchan:     name: Server chan     runs-on: ubuntu-latest     steps:       - name: Sending message         uses: yakumioto\/[email&#160;protected]         with:           key: {SCKEY}           text: {\u6d88\u606f\u6807\u9898}           desp: {\u6d88\u606f\u5185\u5bb9 \u652f\u6301 MarkDown} <\/code><\/pre>\n<p>\u5bc6\u6587 key \u914d\u7f6e, \u9002\u7528\u4e8e\u516c\u5171\u4ed3\u5e93.<\/p>\n<pre><code>--- name: serverchan-action  on: [push]  jobs:   serverchan:     name: Server chan     runs-on: ubuntu-latest     steps:       - name: Sending message         uses: yakumioto\/[email&#160;protected]         with:           key: ${{ secrets.sckey }}           text: {\u6d88\u606f\u6807\u9898}           desp: {\u6d88\u606f\u5185\u5bb9 \u652f\u6301 MarkDown} <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>10<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"589571\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 0312birdzhang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u6761 curl \u4e0d\u5c31\u641e\u5b9a\u4e86\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"589572\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : YakuMioto <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @0312birdzhang \u6709 action \u4e3a\u4ec0\u4e48\u4e0d\u7528\u5462\uff0c\u867d\u7136\u4f60\u8bf4\u7684\u4e5f\u6ca1\u9519\uff0c\u4e0d\u8fc7\u5199 curl \u4e0d\u4f18\u96c5\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"589573\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liyvhg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f3c\u4e4e\u524d\u6392\u6d3b\u6349\u4e86\u4e00\u4e2a server \u9171\u5927\u4f6c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"589574\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : YakuMioto <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @liyvhg \u54c8\u54c8\uff0c\u6b63\u597d\u81ea\u5df1\u8981\u7528\uff0c\u987a\u4fbf\u5b66\u4e00\u4e0b action \u600e\u4e48\u5199\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"589575\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 0312birdzhang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @YakuMioto #2 \u4e0d\u8ba4\u540c\uff0c\u7b80\u5355\u5373\u7f8e\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"589576\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sneezry <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90a3\u4e2a\uff0c\u8fdd\u53cd GitHub \u7528\u6237\u534f\u8bae\u4e86\u2026\u2026<\/p>\n<p>&gt; Additionally, GitHub Actions should not be used for: Serverless computing<\/p>\n<p>https:\/\/help.github.com\/en\/actions\/automating-your-workflow-with-github-actions\/about-github-actions<\/p>\n<p>\u88ab GitHub \u53d1\u73b0\u540e\u4f1a\u88ab\u5173\u5c0f\u9ed1\u5c4b\uff1a<\/p>\n<p>&gt; In order to prevent violations of these limitations and abuse of GitHub Actions, GitHub may monitor your use of GitHub Actions. Misuse of GitHub Actions may result in termination of jobs, or restrictions in your ability to use GitHub Actions.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"589577\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sneezry <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u597d\u610f\u601d\uff0c\u6211\u6ca1\u8ba4\u771f\u8bfb\u9898\uff0c\u53d1\u9001\u548c CI\/CD \u90e8\u7f72\u76f8\u5173\u7684\u901a\u77e5\u4e0d\u7b97\u6ee5\u7528~                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"589578\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : YakuMioto <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @0312birdzhang \u54c8\u54c8, \u90a3\u5c31\u770b\u4f7f\u7528\u4e60\u60ef\u4e86, \u6709\u4eba\u559c\u6b22\u7528 uses, \u6709\u4eba\u559c\u6b22\u7528 run.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"589579\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : YakuMioto <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @sneezry \u54c8\u54c8\u54c8, \u6211\u5199\u8fd9\u4e2a\u63d2\u4ef6\u524d\u4e5f\u6ca1\u53bb\u8bfb\u8fd9\u4e9b, \u4e3b\u8981\u662f\u770b\u5230\u6709 Telegram \u7684, \u5c31\u6b63\u597d\u5199\u4e2a serverchan \u7684.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"589580\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sneezry <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @YakuMioto \u56e0\u4e3a\u6211\u770b\u5230 GitHub Actions \u5e26\u5bbd\u9ad8\u8fbe 1Gbps\uff0c\u6240\u4ee5\u60f3\u5229\u7528\u4e00\u4e0b\uff0c\u5c31\u4e13\u95e8\u67e5\u4e86\u4e0b\u4f7f\u7528\u6761\u6b3e\uff0c\u770b\u5230\u88ab\u660e\u4ee4\u7981\u6b62\u975e\u5e38\u5931\u671b\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u4e8e Github Action &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/109381"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=109381"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/109381\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=109381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=109381"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=109381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}