Reputation: 15377
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?
Upvotes: 3
Views: 107
Reputation: 15377
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.
Upvotes: 0
Reputation: 5647
Issue number 929 in the community support repository suggests that this is currently not supported declaratively. What you can do is rename the artifact in the after_build
step as outlined in the issue:
after_build: - appveyor PushArtifact local-file.zip -FileName remote-file-%appveyor_build_version%.zip
Upvotes: 3