Set destination filename for S3 deploy

Si's Avatar


13 Mar, 2019 12:39 PM

I'm deploying artefacts to S3 after building. The path the artefacts are put into by the build process is quite long, something like dist/windows/Something-win32-x64-installer/SomethingSetup.exe. I have set the bucket and folder in the S3 deploy settings and the exe is being uploaded, however it's uploaded into the specified folder with all of the sub-folders from the artefact path. How can I just upload the exe into the folder specified in the S3 settings without all the nested folders, e.g. my-folder/SomethingSetup.exe instead of my-folder/dist/windows/Something-win32-x64-installer/SomethingSetup.exe

Relevant sections from appveyor.yml:

  path: dist\windows\Something-win32-x64-installer\SomethingSetup.exe
  name: SomethingSetup

  provider: S3
    secure: xxx
    secure: xxx
  bucket: something-client-dist
  region: eu-west-2
  set_public: true
  folder: my-folder
  artifact: SomethingSetup
  1. 1 Posted by Owen McDonnell on 13 Mar, 2019 04:01 PM

    Owen McDonnell's Avatar

    If it's only a single artifact you can zip it to the top level in before_deploy: section of yaml and then set unzip field to true for S3 deployment settings.

    If you want to do multiple artifacts you can take a look at the solution suggested in this discussion.

  2. 2 Posted by Si on 14 Mar, 2019 08:38 AM

    Si's Avatar

    Cool, bit of workaround but I'll give it a try

  3. Owen McDonnell closed this discussion on 10 Apr, 2019 05:41 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Jan, 2020 11:37 AM
18 Jan, 2020 05:35 AM
18 Jan, 2020 02:13 AM
18 Jan, 2020 12:16 AM
17 Jan, 2020 11:13 PM