How to just zip entire project into an artifact?

pdoyle's Avatar

pdoyle

14 May, 2021 03:08 PM

I have a repo that doesn't require any build steps and we just need the entire project to be zipped, maintaining the original folder structure, for use with a webhook deploy. What is the easiest way to accomplish this? Do I need to do a zip command with a shell build script or is there another way?

Thanks!

  1. Support Staff 1 Posted by Feodor Fitsner on 14 May, 2021 03:13 PM

    Feodor Fitsner's Avatar

    It's just:

    artifacts:
    - path: <Relative-path-to-directory>
    

    For example, if there is a Site folder in the root of my repo it is:

    artifacts:
    - path: Site
    
  2. 2 Posted by pdoyle on 14 May, 2021 03:20 PM

    pdoyle's Avatar

    Thanks for the quick response. That works for the subfolders but what if I want to zip the entire build folder? I tried ../myproject as the artifact path but that gave me an error "Only child items to the build folder /home/appveyor/projects/myproject are supported now"

  3. Support Staff 3 Posted by Feodor Fitsner on 14 May, 2021 05:15 PM

    Feodor Fitsner's Avatar
  4. Feodor Fitsner closed this discussion on 14 Jul, 2021 09:03 PM.

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

18 Oct, 2021 12:38 PM
16 Oct, 2021 04:34 PM
15 Oct, 2021 08:29 PM
15 Oct, 2021 06:34 PM
13 Oct, 2021 03:47 PM

 

13 Oct, 2021 06:27 AM
13 Oct, 2021 05:54 AM
12 Oct, 2021 06:48 PM
12 Oct, 2021 06:47 PM
12 Oct, 2021 12:36 PM
11 Oct, 2021 10:05 AM