Set destination filename for S3 deploy
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
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
Support Staff 1 Posted by Owen McDonnell on 13 Mar, 2019 04:01 PM
If it's only a single artifact you can zip it to the top level in
before_deploy:
section of yaml and then setunzip
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 Posted by Si on 14 Mar, 2019 08:38 AM
Cool, bit of workaround but I'll give it a try
Owen McDonnell closed this discussion on 10 Apr, 2019 05:41 AM.