Search code examples
appveyor

Specify name of ZIP file created by AppVeyor


AFAICT I can tell AppVeyor to wrap an entire folder into a zip file artifact, as in the following example:

artifacts:
  - path: logs
    name: test logs
    type: zip

which will push all the files in the logs subfolder to the logs.zip ZIP file.

I want to give the generated ZIP file a different name. How can I do that?


Solution

  • It appears that the name attribute controls the name of the ZIP file as well. So if I want the ZIP file to be named foo.zip, I can write the following in the appveyor.yml:

    artifacts:
      - path: logs
        name: foo
        type: zip
    

    And so I've done -- see here and here.