{"id":10,"date":"2020-03-24T21:29:35","date_gmt":"2020-03-24T13:29:35","guid":{"rendered":"https:\/\/www.moehex.com\/?p=10"},"modified":"2022-10-25T17:46:03","modified_gmt":"2022-10-25T09:46:03","slug":"appveyor","status":"publish","type":"post","link":"https:\/\/www.moehex.com\/index.php\/2020\/03\/24\/appveyor\/","title":{"rendered":"\u4f7f\u7528appveyor\u6301\u7eed\u96c6\u6210C#Wpf\u7a0b\u5e8f"},"content":{"rendered":"\n

\n\n\u5728appveyor\u8fdb\u884c\u7f16\u8bd1\u65f6\uff0c\u901a\u5e38\u9700\u8981appveyor.yml<\/em>\u4f5c\u4e3a\u914d\u7f6e\uff0c\u4f46\u662fWpf\u7a0b\u5e8f\u7684\u6301\u7eed\u96c6\u6210\uff0c\u662f\u4e0d\u9700\u8981\u8fd9\u4e48\u9ebb\u70e6\u7684\u3002<\/p>\n\n\n\n

1.\u628a\u9879\u76ee\u4e0a\u4f20\u5230Github\uff08\u5e9f\u8bdd\uff09<\/h2>\n\n\n\n

2.\u767b\u5f55\u5230appveyor<\/h2>\n\n\n\n

\u8bbf\u95ee\uff1aAppVeyor<\/a>\uff0c\u4f7f\u7528Github\u7684\u8d26\u6237\u767b\u5f55\u5230appveyor\u3002\uff08\u53ef\u80fd\u4f1a\u51fa\u73b0\u65e0\u6cd5\u767b\u9646\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u81ea\u5df1\u518d\u53e6\u5916\u7528\u90ae\u7bb1\u6ce8\u518c\uff0c\u767b\u9646\u540e\u518d\u7ed1\u5b9aGithub\u5373\u53ef\uff09<\/em><\/p>\n\n\n\n

3.\u4eceGithub\u4ed3\u5e93\u5f00\u542f\u4e00\u4e2a\u65b0\u7684\u6301\u7eed\u96c6\u6210<\/h2>\n\n\n\n

\u70b9\u51fbNew Project<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u9009\u62e9\u4f60Github\u4e2d\u9700\u8981\u7684\u4ed3\u5e93\uff0c\u9996\u6b21\u8fdb\u5165\u8fd9\u4e2a\u754c\u9762\u65f6\uff0c\u9700\u8981\u5148\u8fdb\u884c\u6388\u6743<\/strong>\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

4.\u8fdb\u5165\u8bbe\u7f6e<\/h2>\n\n\n\n
\"\"\/<\/figure>\n\n\n\n
\"\"\/<\/figure>\n\n\n\n

5.\u5f00\u59cb\u8bbe\u7f6e<\/strong><\/h2>\n\n\n\n

General<\/strong>\u52fe\u9009\u4e0b\u9762\u4e09\u4e2a\u9879\u76ee\uff1a<\/strong><\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u4ee5\u4e0b\u4e8c\u9009\u4e00\uff0c\u6211\u8fd9\u91cc\u9009\u62e9\u7684\u662f\u5728\u63a8\u9001tag\u65f6\u8fdb\u884c\u7f16\u8bd1<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n
\"\"\/
\u5ffd\u7565appveyor.yml\u914d\u7f6e\u6587\u4ef6<\/figcaption><\/figure>\n\n\n\n

Environment<\/strong><\/p>\n\n\n\n

\"\"\/
\u9009\u62e9\u7f16\u8bd1\u7684vs\u7248\u672c<\/figcaption><\/figure>\n\n\n\n

Build<\/strong><\/p>\n\n\n\n

\"\"\/
\u7f16\u8bd1\u7c7b\u578b<\/figcaption><\/figure>\n\n\n\n
\"\"\/
\u9700\u8981\u8fd8\u539f\u4e0bNuget\u7684\u5305<\/figcaption><\/figure>\n\n\n\n

Artifacts<\/strong>Path to artifact\uff1a\uff08\u6253\u5305\u76ee\u5f55\uff0c\u9700\u8981\u6839\u636e\u4f60\u5b9e\u9645\u7f16\u8bd1\u7684\u7ed3\u679c\u6765\u5199\uff09<\/p>\n\n\n\n

$(APPVEYOR_PROJECT_NAME)\\bin\\x64\\Release<\/pre>\n\n\n\n

Deployment name\uff1a\uff08\u6253\u5305\u6587\u4ef6\u540d\uff09<\/p>\n\n\n\n

$(APPVEYOR_PROJECT_NAME)-v$(APPVEYOR_REPO_TAG_NAME)<\/pre>\n\n\n\n
\"\"\/<\/figure>\n\n\n\n

Deployment<\/strong>\u53d1\u5e03Release\u5230Github\uff0c\u9700\u8981\u5148\u751f\u6210\u4e00\u4e2aGithub\u7684token\uff0c\u8bbf\u95ee\u8fd9\u91cc\u83b7\u53d6\uff1aBuild software better, together<\/a>\u6743\u9650\u53ea\u9700\u8bbe\u7f6epublic_repo\u4e00\u9879\u5373\u53ef\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

\u6bcf\u6b21\u63a8\u9001tag\u65f6\uff0c\u90fd\u4f1a\u89e6\u53d1appveyor\u7f16\u8bd1\uff0c\u7b49\u7f16\u8bd1\u5b8c\u6210\u540e<\/strong>\uff0c\u624b\u52a8\u5230github\u7684Release\u8fdb\u884c\u53d1\u5e03\u5373\u53ef\u3002<\/p>\n\n\n\n

\"\"\/<\/figure>\n

\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a\u840c\u8fdb\u5236<\/a> » \u4f7f\u7528appveyor\u6301\u7eed\u96c6\u6210C#Wpf\u7a0b\u5e8f<\/a><\/p>","protected":false},"excerpt":{"rendered":"

\u5728appveyor\u8fdb\u884c\u7f16\u8bd1\u65f6\uff0c\u901a\u5e38\u9700\u8981appveyor.yml\u4f5c\u4e3a\u914d\u7f6e\uff0c\u4f46\u662fWpf\u7a0b\u5e8f\u7684\u6301\u7eed\u96c6\u6210\uff0c\u662f\u4e0d\u9700\u8981\u8fd9\u4e48\u9ebb\u70e6\u7684\u3002 1.\u628a\u9879\u76ee\u4e0a\u4f20\u5230Github\uff08\u5e9f\u8bdd\uff09 2.\u767b\u5f55\u5230appveyor \u8bbf\u95ee\uff1aAppVeyor\uff0c\u4f7f\u7528Github\u7684\u8d26\u6237\u767b\u5f55\u5230appvey […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/posts\/10"}],"collection":[{"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":2,"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"predecessor-version":[{"id":12,"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/posts\/10\/revisions\/12"}],"wp:attachment":[{"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moehex.com\/index.php\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}