Skip to content

ihiroky/archive-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

archive-action

Github Action to create a various format archive file for your artifacts, and it works on any platform. This action is powered by python's shutil.make_archive, and probably lightweight because it works without docker build.

Supported format

  • zip
  • tar
  • tar.gz (tgz)
  • tar.bz2 (tbz2)
  • tar.xz (txz)

Usage

      - name: Create zip
        uses: ihiroky/archive-action@v1
        with:
          root_dir: path_to_arhive_root_directory
          file_path: path_to_archive.zip

If you set like this, the archive file contains hoge/fuga/file and file

Arguments

  • root_dir (required)

    Root directory to archive.

  • base_dir (optional, default: '.')

    Base directory; common prefix of all files and directories in the archive, relative to root_dir. See also Archiving example with base_dir

  • file_path (optional, default: 'output.zip')

    Output file path. This extension determines the format of the archive.

  • verbose: (optional, default: false)

    Shows details about the result of running this action.

About

Github Action to create an archive file for your artifacts on any platform.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages