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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

26 Mar, 2019 06:34 AM
26 Mar, 2019 06:27 AM
25 Mar, 2019 09:12 PM
25 Mar, 2019 06:34 PM
25 Mar, 2019 06:20 AM

 

24 Mar, 2019 06:52 PM
24 Mar, 2019 05:26 PM
24 Mar, 2019 03:07 AM
22 Mar, 2019 02:20 PM
22 Mar, 2019 11:00 AM
22 Mar, 2019 02:51 AM