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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM