title: SBT how to publish an artifact generated from the run command
body: <p>I'm attempting to compile and run scala code that generates a file in SBT (in this case its a swagger file). </p>
  
  <p>the following sbt executes fine. The jar is built and executed and the swagger.zip file the execution creates is in the target directory. I can't, however, seem to get the zip file to get published to my artifactory repo like my standard jar files would.</p>
  
  <p>Any idea on what I'm missing?</p>
  
  <pre><code>
  
      publishArtifact in (Compile, packageBin) := false 
      publishArtifact in run := true
  
      val myZipTask = taskKey[File]("swagger-zip")
  
      myZipTask := {
        file("swagger.zip")
      }
  
      addArtifact(Artifact("swagger", "zip", "zip"), myZipTask )
  
  
  </code></pre>