Skip to content
play

GitHub Action

Upload Tar Artifact

v2 Latest version

Upload Tar Artifact

play

Upload Tar Artifact

Compress files with tar prior to artifacting to keep file privileges

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Upload Tar Artifact

uses: alehechka/upload-tartifact@v2

Learn more about this action in alehechka/upload-tartifact

Choose a version

upload-tartifact

Composite GitHub Action that solves for a shortcoming of the current upload-artifact action, in which any artifacts downloaded lose their file privileges (namely, execution privilege).

This action will first tar any files or folders at the provided path input into an artifact.tar at the root of the GHA environment. Then actions/upload-artifact@v2 is used directly to artifact the tar file. Once completed, this action will clean itself up by removing the artifact.tar file.

Utilize the sibling action at download-tartifact to download the artifact and extract your files.

Note: The path provided will be maintained through tar, so after download-tartifact, any subfolder structure will remain intact.