{"id":35,"date":"2023-11-24T14:49:38","date_gmt":"2023-11-24T06:49:38","guid":{"rendered":"https:\/\/dimtechstudio.com\/?p=35"},"modified":"2025-05-11T00:01:51","modified_gmt":"2025-05-10T16:01:51","slug":"gitops-github-actions-build-and-push-package-to-nuget-org","status":"publish","type":"post","link":"http:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/","title":{"rendered":"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org"},"content":{"rendered":"<p><a href=\"https:\/\/www.dimtechstudio.com\/\"><img decoding=\"async\" src=\"\/dimwalker\/Wlkr.MyNote\/raw\/master\/2023\/11\/24\/vx_images\/DimTechStudio-Logo.png\" alt=\"DimTechStudio.Com\" \/><\/a>  <\/p>\n<h1>\u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org<\/h1>\n<p>GitHub Actions\u662fGitHub\u63d0\u4f9b\u7684\u6301\u7eed\u96c6\u6210\u548c\u6301\u7eed\u90e8\u7f72\uff08CI\/CD\uff09\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u81ea\u52a8\u5316\u6784\u5efa\u3001\u6d4b\u8bd5\u548c\u90e8\u7f72\u4f60\u7684\u9879\u76ee\u3002\u5728\u8fd9\u7bc7\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528GitHub Actions\u6765\u6784\u5efa\u4e00\u4e2a.NET\u9879\u76ee\uff0c\u5e76\u5c06\u5b83\u53d1\u5e03\u5230 NuGet.org\u3002  <\/p>\n<h2>\u914d\u7f6e NuGet API \u5bc6\u94a5<\/h2>\n<ul>\n<li>\u9996\u5148\u8fdb\u5165<a href=\"https:\/\/www.nuget.org\/\">nuget.org<\/a>\uff0c\u767b\u5f55\u4f60\u7684microsoft\u8d26\u53f7  <\/li>\n<li>\u70b9\u51fb\u53f3\u4e0a\u89d2\u8d26\u6237\uff0cAPI Keys<br \/>\n<img decoding=\"async\" src=\"\/dimwalker\/Wlkr.MyNote\/raw\/master\/2023\/11\/24\/vx_images\/373385011243328.png\" alt=\"\" \/>  <\/li>\n<li>\u70b9\u51fbCreate\n<ul>\n<li>\u586b\u5199KeyName  <\/li>\n<li>\u5982\u9700\u8bbe\u7f6e\u6b64Key\u53ef\u7ba1\u7406\u7684\u7a0b\u5e8f\u5305\u6743\u9650\uff0c\u586b\u5199Global Pattern\uff08\u5982Wlkr.*\uff09\uff0c\u6216\u8005\u5728\u5bf9\u5e94\u7a0b\u5e8f\u5305\u540d\u524d\u6253\u94a9<br \/>\n<img decoding=\"async\" src=\"\/dimwalker\/Wlkr.MyNote\/raw\/master\/2023\/11\/24\/vx_images\/549775311234047.png\" alt=\"\" \/>  <\/li>\n<\/ul>\n<\/li>\n<li>\u751f\u6210\u540e\uff0c\u4f60\u6709\u4e00\u6b21\u673a\u4f1a\u67e5\u770b\u6b64Key\u7684\u503c<br \/>\n<mark>\u5982\u679c\u5e0c\u671b\u5c06\u6b64Key\u7528\u4e8e\u591a\u4e2a\u5e93\uff0c\u8bb0\u5f97\u4fdd\u7ba1\u597d\u6b64Key\uff0c\u5426\u5219\u53ea\u80fd\u91cd\u65b0\u751f\u6210\u6216\u518d\u65b0\u5efa\u4e00\u4e2aKey\u3002<\/mark>  <\/p>\n<h2>\u8bbe\u7f6eGithub Action<\/h2>\n<\/li>\n<li>\u767b\u5f55Github\uff0c\u6253\u5f00\u4f60\u7684remote \u4ee3\u7801\u5e93 -&gt; Setting -&gt; Secrets and variables -&gt; Actions -&gt; New repository secret\uff0c\u8f93\u5165\u521a\u624d\u590d\u5236\u7684Key\u4fdd\u5b58\u5230\u8fd9\u91cc\uff0ckey\u540d\u79f0\u6539\u4e3aNUGET_API_KEY\uff0c\u540e\u9762\u4f1a\u7528\u5230\u3002<br \/>\n<img decoding=\"async\" src=\"\/dimwalker\/Wlkr.MyNote\/raw\/master\/2023\/11\/24\/vx_images\/477494813253202.png\" alt=\"\" \/>  <\/li>\n<li>\u7136\u540e\u6253\u5f00\u4f60\u7684local \u4ee3\u7801\u5e93\uff0c\u65b0\u5efa\u6587\u4ef6.github\\workflows\\nuget-publish.yml\n<pre><code class=\"language-powershell\">mkdir .github\\workflows\necho ^ &gt; .github\\workflows\\nuget-publish.yml<\/code><\/pre>\n<\/li>\n<li>\u5c06\u4ee5\u4e0b\u5185\u5bb9\u590d\u5236\u8fdb\u53bbnuget-publish.yml\u5185\u4fdd\u5b58\n<pre><code class=\"language-yaml\">\nname: Publish NuGet Package # Action\u540d\u79f0<\/code><\/pre>\n<\/li>\n<\/ul>\n<h1>\u8bbe\u7f6e\u89e6\u53d1\u5668<\/h1>\n<h1>\u4ee5\u4e0b\u793a\u4f8b\u4e3amaster\u5206\u652f\uff0cDirectory.Build.props\u6587\u4ef6\u53d1\u751f\u53d8\u52a8\u540e\uff0c<\/h1>\n<h1>\u89e6\u53d1\u672caction<\/h1>\n<p>on:<br \/>\npush:<br \/>\nbranches:<\/p>\n<ul>\n<li>master # \u76d1\u542c\u7684\u5206\u652f<br \/>\npaths: # \u76d1\u542c\u7684\u6587\u4ef6<\/li>\n<li>&#039;Directory.Build.props&#039;<\/li>\n<\/ul>\n<h1>\u8bbe\u7f6e\u8fd0\u884c\u73af\u5883\u53ca\u6267\u884c\u6b65\u9aa4<\/h1>\n<h1>\u4f5c\u7528\u89c1step name<\/h1>\n<p>jobs:<br \/>\nbuild-and-publish:<br \/>\nruns-on: windows-latest<\/p>\n<pre><code>steps:\n  - name: Checkout code\n    uses: actions\/checkout@v2\n\n  - name: Setup .NET Core\n    uses: actions\/setup-dotnet@v1\n    with:\n      dotnet-version: &#039;6.x&#039; # \u4fee\u6539\u4e3a\u4f60\u7684.NET\u7248\u672c\n\n  - name: Restore NuGet packages\n    run: dotnet restore\n\n  - name: Build\n    run: dotnet build --configuration Release\n\n  - name: Pack NuGet package\n    run: |\n      cd Wlkr.Core.Logger\n      dotnet pack Wlkr.Core.Logger.csproj  --configuration Release --no-build\n\n  # \u9700\u5728github\u5e93\u4e2d\u8bbe\u7f6e${{ secrets.NUGET_API_KEY }}\n  - name: Publish NuGet package\n    run: dotnet nuget push **\/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https:\/\/api.nuget.org\/v3\/index.json --skip-duplicate<\/code><\/pre>\n<pre><code>\n* \u65b0\u5efa\u6587\u4ef6Directory.Build.props\uff0c\u6b64\u6587\u4ef6\u4f5c\u7528\u662f\u7edf\u4e00\u8bbe\u7f6e\u6240\u6709csproj\u7684nuget\u5305\u4fe1\u606f\uff0c\u5982\u4f5c\u8005\u3001\u7248\u6743\u3001\u7248\u672c\u53f7\u7b49\u4fe1\u606f  \n> \u5b9e\u9645\u4e0anuget\u4ee5\u5916\u7684\u4fe1\u606f\u4e5f\u80fd\u8bbe\u7f6e  \n```xml\n&lt;Project&gt;\n    &lt;PropertyGroup&gt;\n        &lt;Authors&gt;Walker Chan&lt;\/Authors&gt;\n        &lt;Company&gt;\u5e7f\u5dde\u5e02\u589e\u57ce\u533a\u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8&lt;\/Company&gt;\n        &lt;Copyright&gt;Copyright 2023 DimWalker&lt;\/Copyright&gt;\n    &lt;\/PropertyGroup&gt;\n\n    &lt;!-- Calculate the build and revision numbers based on the current date --&gt;\n    &lt;PropertyGroup&gt;\n        &lt;MajorVersion&gt;1&lt;\/MajorVersion&gt;\n        &lt;MinorVersion&gt;0&lt;\/MinorVersion&gt;\n        &lt;BuildDate&gt;2310&lt;\/BuildDate&gt;\n        &lt;RevisionTime&gt;1200&lt;\/RevisionTime&gt;\n        &lt;!--&lt;MinorVersion&gt;$([System.DateTime]::Now.ToString(&quot;yy&quot;))&lt;\/MinorVersion&gt;--&gt;\n        &lt;!--&lt;BuildDate&gt;$([System.DateTime]::Now.ToString(&quot;MMdd&quot;))&lt;\/BuildDate&gt;--&gt;\n        &lt;!--&lt;RevisionTime&gt;$([System.DateTime]::Now.ToString(&quot;HHmm&quot;))&lt;\/RevisionTime&gt;--&gt;\n        &lt;BuildNumber&gt;$(MajorVersion).$(MinorVersion).$(BuildDate).$(RevisionTime)&lt;\/BuildNumber&gt;\n    &lt;\/PropertyGroup&gt;\n    &lt;!-- Use the calculated version for the NuGet package --&gt;\n    &lt;PropertyGroup&gt;\n        &lt;VersionPrefix&gt;$(BuildNumber)&lt;\/VersionPrefix&gt;\n        &lt;Version&gt;$(VersionPrefix)&lt;\/Version&gt;\n    &lt;\/PropertyGroup&gt;\n\n    &lt;PropertyGroup&gt;\n        &lt;!-- \u8bbe\u7f6e SolutionDir \u5c5e\u6027\u4e3a\u89e3\u51b3\u65b9\u6848\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84 --&gt;\n        &lt;SolutionDir&gt;$(MSBuildThisFileDirectory)&lt;\/SolutionDir&gt;\n    &lt;\/PropertyGroup&gt;\n    &lt;ItemGroup&gt;\n        &lt;!-- Nuget\u7684Icon\u6587\u4ef6 --&gt;\n        &lt;None Include=&quot;$(SolutionDir)vx_images\\DimTechStudio-Icon.png&quot;&gt;\n            &lt;Pack&gt;True&lt;\/Pack&gt;\n            &lt;PackagePath&gt;\\&lt;\/PackagePath&gt;\n        &lt;\/None&gt;\n        &lt;!-- Nuget\u7684\u81ea\u8ff0\u6587\u4ef6 --&gt;\n        &lt;None Include=&quot;$(SolutionDir)README.md&quot;&gt;\n            &lt;Pack&gt;True&lt;\/Pack&gt;\n            &lt;PackagePath&gt;\\&lt;\/PackagePath&gt;\n        &lt;\/None&gt;\n    &lt;\/ItemGroup&gt;\n    &lt;PropertyGroup&gt;\n        &lt;PackageIcon&gt;DimTechStudio-Icon.png&lt;\/PackageIcon&gt;\n        &lt;!--&lt;PackageReadmeFile&gt;README.md&lt;\/PackageReadmeFile&gt;--&gt;\n    &lt;\/PropertyGroup&gt;\n&lt;\/Project&gt;<\/code><\/pre>\n<ul>\n<li>\u6587\u4ef6\u4e2d\u7248\u672c\u53f7\u662f\u4ee51.0.YYMM.DDsn\u7684\u683c\u5f0f\u7f16\u5199\uff0c\u5f53\u9700\u8981\u53d1\u5e03\u65f6\uff0c\u4fee\u6539\u5e74\u6708\u65e5\u6216\u6d41\u6c34\u53f7\uff0cgit commit\u5e76push\u5230remote \u4ee3\u7801\u5e93\u5373\u53ef\u89e6\u53d1action  <\/li>\n<li>\u6548\u679c\u67e5\u770b<br \/>\n<img decoding=\"async\" src=\"\/dimwalker\/Wlkr.MyNote\/raw\/master\/2023\/11\/24\/vx_images\/116940715232854.png\" alt=\"\u56fe1\" \/><br \/>\n<img decoding=\"async\" src=\"\/dimwalker\/Wlkr.MyNote\/raw\/master\/2023\/11\/24\/vx_images\/567730715231300.png\" alt=\"\u56fe2\" \/>  <\/li>\n<\/ul>\n<h2>\u66f4\u65b0Nuget README<\/h2>\n<ul>\n<li>\u65b9\u6cd5\u4e00\uff0c\u5982\u4e0a\u56fe\uff0c\u5982\u679c\u5728\u9879\u76ee\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u4e86README\u6587\u4ef6\uff0c\u90a3\u4e48\u53ea\u80fd\u901a\u8fc7\u518d\u6b21\u53d1\u5e03nuget\u5305\u6765\u66f4\u65b0README\u4fe1\u606f<br \/>\n<blockquote>\n<p>\u5982\u4e0a\u56fe\u7684\u56fe\u7247\u6587\u4ef6\u662f\u4f7f\u7528\u4e86\u6587\u4ef6\u4ef6\u8def\u5f84\uff0c\u5219\u6ca1\u6cd5\u663e\u793a\u5728 nuget.org\uff0c\u5219\u9700\u8981\u4fee\u6539README\u7684\u56fe\u7247\u8def\u5f84\u4e3agithub url\uff0c\u518d\u6b21\u53d1\u5e03\u624d\u80fd\u770b\u5f97\u89c1\u56fe\u7247  <\/p>\n<\/blockquote>\n<\/li>\n<li>\u65b9\u6cd5\u4e8c\uff0c\u53d6\u6d88\u7ed1\u5b9aREADME\uff0c\u767b\u5f55nuget.org\uff0c\u8fdb\u5165Manage Package\uff0c\u7f16\u8f91README\u4fe1\u606f<br \/>\n<blockquote>\n<p>\u7f3a\u70b9\u662f\u6bcf\u6b21\u53d1\u5e03\u90fd\u9700\u8981\u91cd\u590d\u4e00\u904d\u6b64\u64cd\u4f5c<br \/>\n<img decoding=\"async\" src=\"\/dimwalker\/Wlkr.MyNote\/raw\/master\/2023\/11\/24\/vx_images\/389592515261118.png\" alt=\"\" \/>  <\/p>\n<\/blockquote>\n<\/li>\n<li>2023-10-13\u65b0\u589e\u65b9\u6cd5\u4e09\uff0c\u6b64\u65b9\u6cd5\u4ec5\u9002\u7528\u4e8e<a href=\"https:\/\/github.com\/vnotex\/vnote\">vnote<\/a>\u7f16\u5199\u7684md\u6587\u4ef6\n<ul>\n<li>\u5de5\u5177\u4e0b\u8f7d\u5730\u57401\uff1a<a href=\"https:\/\/github.com\/DimWalker\/VNoteTools\">VNoteTools Github<\/a>  <\/li>\n<li>\u5de5\u5177\u4e0b\u8f7d\u5730\u57402\uff1a<a href=\"https:\/\/gitee.com\/dimwalker\/VNoteTools\/\">VNoteTools Gitee<\/a>  <\/li>\n<li>\u5c06\u4e0b\u9762\u4ee3\u7801\u7684github_image_prefix_url\uff0c\u66ff\u6362\u4e3a\u4f60\u7684\u4ee3\u7801\u5e93\uff0c\u6267\u884c\u547d\u4ee4\u5c06README.md\u8f6c\u6362\u4e3aREADME_Nuget.md\n<pre><code class=\"language-shell\">VNoteTools.exe -Method NugetMd -InputMdPath \"F:\\Project_Private\\Wlkr.Core.SDK\\Wlkr.Core.Logger\\README.md\" -github_image_prefix_url \"https:\/\/raw.githubusercontent.com\/DimWalker\/Wlkr.Core.Logger\/master\/vx_images\/\"  <\/code><\/pre>\n<\/li>\n<li>\u4fee\u6539Directory.Build.props\uff0c\u5c06\u6574\u4e2asolution\u5185\u7684\u9879\u76ee\u7edf\u4e00README_Nuget.md\n<pre><code class=\"language-xml\"><PropertyGroup>  \n    <!-- \u8bbe\u7f6e SolutionDir \u5c5e\u6027\u4e3a\u89e3\u51b3\u65b9\u6848\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84 -->  \n    <SolutionDir>$(MSBuildThisFileDirectory)<\/SolutionDir>  \n<\/PropertyGroup>  \n<ItemGroup>  \n    <!-- Nuget\u7684Icon\u6587\u4ef6 -->  \n    <None Include=\"$(SolutionDir)vx_images\\DimTechStudio-Icon.png\">  \n        <Pack>True<\/Pack>  \n        <PackagePath>\\<\/PackagePath>  \n    <\/None>  \n    <!-- Nuget\u7684\u81ea\u8ff0\u6587\u4ef6 -->  \n    <None Include=\"$(SolutionDir)README_Nuget.md\">  \n        <Pack>True<\/Pack>  \n        <PackagePath>\\<\/PackagePath>  \n    <\/None>  \n<\/ItemGroup>  \n<PropertyGroup>  \n    <PackageIcon>DimTechStudio-Icon.png<\/PackageIcon>  \n    <PackageReadmeFile>README_Nuget.md<\/PackageReadmeFile>  \n<\/PropertyGroup>  <\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Author Info<\/h2>\n<p>DimWalker<br \/>\n\u00a92023 \u5e7f\u5dde\u5e02\u589e\u57ce\u533a\u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8<br \/>\n<a href=\"https:\/\/www.dimtechstudio.com\/\">https:\/\/www.dimtechstudio.com\/<\/a>  <\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org GitHub Actions\u662fGitHub\u63d0\u4f9b\u7684\u6301\u7eed\u96c6\u6210\u548c\u6301\u7eed\u90e8\u7f72\uff08CI\/CD\uff09\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u81ea\u52a8\u5316\u6784\u5efa\u3001\u6d4b\u8bd5\u548c\u90e8\u7f72\u4f60\u7684\u9879\u76ee\u3002\u5728\u8fd9\u7bc7 &#8230;","protected":false},"author":1,"featured_media":14,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[33,9,8,13],"class_list":["post-35","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gitops","category-3","tag-net","tag-devops","tag-gitops","tag-nuget"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org - \u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org - \u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8\" \/>\n<meta property=\"og:description\" content=\"\u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org GitHub Actions\u662fGitHub\u63d0\u4f9b\u7684\u6301\u7eed\u96c6\u6210\u548c\u6301\u7eed\u90e8\u7f72\uff08CI\/CD\uff09\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u81ea\u52a8\u5316\u6784\u5efa\u3001\u6d4b\u8bd5\u548c\u90e8\u7f72\u4f60\u7684\u9879\u76ee\u3002\u5728\u8fd9\u7bc7 ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/\" \/>\n<meta property=\"og:site_name\" content=\"\u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-24T06:49:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-10T16:01:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dimtechstudio.com\/wp-content\/uploads\/2023\/11\/DimTechStudio-Logo-220x150-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"220\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"DimWalker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"DimWalker\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/\"},\"author\":{\"name\":\"DimWalker\",\"@id\":\"https:\/\/dimtechstudio.com\/#\/schema\/person\/7f8c70f133a3ce4b0c308884bbbd83a8\"},\"headline\":\"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org\",\"datePublished\":\"2023-11-24T06:49:38+00:00\",\"dateModified\":\"2025-05-10T16:01:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/\"},\"wordCount\":141,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dimtechstudio.com\/#\/schema\/person\/7f8c70f133a3ce4b0c308884bbbd83a8\"},\"keywords\":[\".net\",\"DevOps\",\"GitOps\",\"Nuget\"],\"articleSection\":[\"GitOps\",\"\u539f\u521b\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/\",\"url\":\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/\",\"name\":\"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org - \u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8\",\"isPartOf\":{\"@id\":\"https:\/\/dimtechstudio.com\/#website\"},\"datePublished\":\"2023-11-24T06:49:38+00:00\",\"dateModified\":\"2025-05-10T16:01:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/dimtechstudio.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dimtechstudio.com\/#website\",\"url\":\"https:\/\/dimtechstudio.com\/\",\"name\":\"\u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8\",\"description\":\"DimTechStudio\",\"publisher\":{\"@id\":\"https:\/\/dimtechstudio.com\/#\/schema\/person\/7f8c70f133a3ce4b0c308884bbbd83a8\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dimtechstudio.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/dimtechstudio.com\/#\/schema\/person\/7f8c70f133a3ce4b0c308884bbbd83a8\",\"name\":\"DimWalker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/dimtechstudio.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/dimtechstudio.com\/wp-content\/uploads\/2023\/11\/DimTechStudio-Icon-128x128-1.png\",\"contentUrl\":\"http:\/\/dimtechstudio.com\/wp-content\/uploads\/2023\/11\/DimTechStudio-Icon-128x128-1.png\",\"width\":128,\"height\":128,\"caption\":\"DimWalker\"},\"logo\":{\"@id\":\"https:\/\/dimtechstudio.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/dimtechstudio.com\"],\"url\":\"http:\/\/dimtechstudio.com\/index.php\/author\/walker\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org - \u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8","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:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/","og_locale":"zh_CN","og_type":"article","og_title":"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org - \u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8","og_description":"\u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org GitHub Actions\u662fGitHub\u63d0\u4f9b\u7684\u6301\u7eed\u96c6\u6210\u548c\u6301\u7eed\u90e8\u7f72\uff08CI\/CD\uff09\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u81ea\u52a8\u5316\u6784\u5efa\u3001\u6d4b\u8bd5\u548c\u90e8\u7f72\u4f60\u7684\u9879\u76ee\u3002\u5728\u8fd9\u7bc7 ...","og_url":"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/","og_site_name":"\u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8","article_published_time":"2023-11-24T06:49:38+00:00","article_modified_time":"2025-05-10T16:01:51+00:00","og_image":[{"width":220,"height":150,"url":"https:\/\/dimtechstudio.com\/wp-content\/uploads\/2023\/11\/DimTechStudio-Logo-220x150-1.png","type":"image\/png"}],"author":"DimWalker","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"DimWalker","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/#article","isPartOf":{"@id":"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/"},"author":{"name":"DimWalker","@id":"https:\/\/dimtechstudio.com\/#\/schema\/person\/7f8c70f133a3ce4b0c308884bbbd83a8"},"headline":"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org","datePublished":"2023-11-24T06:49:38+00:00","dateModified":"2025-05-10T16:01:51+00:00","mainEntityOfPage":{"@id":"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/"},"wordCount":141,"commentCount":0,"publisher":{"@id":"https:\/\/dimtechstudio.com\/#\/schema\/person\/7f8c70f133a3ce4b0c308884bbbd83a8"},"keywords":[".net","DevOps","GitOps","Nuget"],"articleSection":["GitOps","\u539f\u521b"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/","url":"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/","name":"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org - \u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8","isPartOf":{"@id":"https:\/\/dimtechstudio.com\/#website"},"datePublished":"2023-11-24T06:49:38+00:00","dateModified":"2025-05-10T16:01:51+00:00","breadcrumb":{"@id":"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dimtechstudio.com\/index.php\/2023\/11\/24\/gitops-github-actions-build-and-push-package-to-nuget-org\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/dimtechstudio.com\/"},{"@type":"ListItem","position":2,"name":"[GitOps] \u4f7f\u7528Github Actions\u5b9e\u73b0\u6784\u5efa\u3001\u53d1\u5e03\u5230 nuget.org"}]},{"@type":"WebSite","@id":"https:\/\/dimtechstudio.com\/#website","url":"https:\/\/dimtechstudio.com\/","name":"\u9eef\u5f71\u4fe1\u606f\u79d1\u6280\u90e8","description":"DimTechStudio","publisher":{"@id":"https:\/\/dimtechstudio.com\/#\/schema\/person\/7f8c70f133a3ce4b0c308884bbbd83a8"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dimtechstudio.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/dimtechstudio.com\/#\/schema\/person\/7f8c70f133a3ce4b0c308884bbbd83a8","name":"DimWalker","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/dimtechstudio.com\/#\/schema\/person\/image\/","url":"http:\/\/dimtechstudio.com\/wp-content\/uploads\/2023\/11\/DimTechStudio-Icon-128x128-1.png","contentUrl":"http:\/\/dimtechstudio.com\/wp-content\/uploads\/2023\/11\/DimTechStudio-Icon-128x128-1.png","width":128,"height":128,"caption":"DimWalker"},"logo":{"@id":"https:\/\/dimtechstudio.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/dimtechstudio.com"],"url":"http:\/\/dimtechstudio.com\/index.php\/author\/walker\/"}]}},"_links":{"self":[{"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":0,"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/media\/14"}],"wp:attachment":[{"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dimtechstudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}