Set destination filename for S3 deploy

Si's Avatar

Si

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:

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

deploy:
  provider: S3
  access_key_id: 
    secure: xxx
  secret_access_key:
    secure: xxx
  bucket: something-client-dist
  region: eu-west-2
  set_public: true
  folder: my-folder
  artifact: SomethingSetup
  1. Support Staff 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

Generic

? 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

21 Aug, 2019 11:06 PM
21 Aug, 2019 02:08 PM
21 Aug, 2019 01:37 PM
21 Aug, 2019 10:21 AM
21 Aug, 2019 09:10 AM

 

21 Aug, 2019 05:56 AM
21 Aug, 2019 03:08 AM
20 Aug, 2019 11:33 PM
20 Aug, 2019 08:07 PM
20 Aug, 2019 05:50 PM
20 Aug, 2019 12:35 PM