action-zip
action-zip copied to clipboard
nested zip files
I'm doing something like this but when I download the artifact it contains seedPC.zip again. What am I missing?
seedPC.zip -> unzip -> seedPC.zip -> unzip -> contents of lab directory
- name: Easy Zip Files
# You may pin to the exact commit or the version.
# uses: vimtor/action-zip@5f1c4aa587ea41db1110df6a99981dbe19cee310
uses: vimtor/action-zip@v1
with:
# Files or directories to zip
files: assets/lab
# Name of output zip file
dest: seedPC.zip
# Whether to add subdirectories to simply zip all files to the root
recursive: true
- name: Upload SeedPC
uses: actions/upload-artifact@v1
with:
name: seedPC
path: ${{ github.workspace }}/seedPC.zip
Nevermind, I just needed to RTFM - it's because of upload-artifact
During a workflow run, files are uploaded and downloaded individually using the upload-artifact and download-artifact actions. However, when a workflow run finishes and an artifact is downloaded from either the UI or through the download api, a zip is dynamically created with all the file contents that were uploaded. There is currently no way to download artifacts after a workflow run finishes in a format other than a zip or to download artifact contents individually. One of the consequences of this limitation is that if a zip is uploaded during a workflow run and then downloaded from the UI, there will be a double zip created.