AWS CodeBuild 能否将 nuget 包发布到 Nuget.org 和 Github?

Can AWS CodeBuild publish nuget packages to Nuget.org and Github?

我正在开发一个 nuget 包。它有一个 public Github 回购协议。是否可以在dev分支合并到master后使用AWS CodeBuild执行以下操作:

  1. 发布中构建大师
  2. 从 bin/release 文件夹获取 nupkg 文件并将其发布到 nuget.org
  3. 将同一文件作为版本添加到 github 存储库
  4. 启动自定义 *.exe

Build master in release

将 Webhook 与 CodeBuild 结合使用来构建任何分支: https://docs.aws.amazon.com/codebuild/latest/userguide/sample-github-pull-request.html

Get nupkg file from bin/release folder and publish it to nuget.org

CodeBuild 可以 运行 buildspec 中的任意命令: https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-example

Add that same file as a release to the github repo

我不确定,您可能需要使用第三方二进制文件来实现此目的,即 运行 in buildspec

start a custom *.exe

您会 运行 在构建或部署期间这样做吗?如果构建,你可以再次运行 buildspec中的命令,如果部署,你需要使用像CodeDeploy这样的部署服务。