Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using path as base directory for files inside the zip file #29

Closed
bierdosenhalter opened this issue Jun 12, 2022 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@bierdosenhalter
Copy link

When using

        uses: thedoctor0/zip-release@main
        with:
          type: 'tar'
          path: 'publish/linux64/'
          exclusions: '*.pdb'
          filename: 'linux-x64.tar.gz'

i get a tar file with my files in the folders
linux-x64.tar.gz\publish\linux64\

but it would be way nicer if they would be in the root of the zip file
linux-x64.tar.gz\

@TheDoctor0 TheDoctor0 self-assigned this Jun 13, 2022
@TheDoctor0 TheDoctor0 added the enhancement New feature or request label Jun 13, 2022
@TheDoctor0
Copy link
Owner

TheDoctor0 commented Aug 14, 2022

Hello @bierdosenhalter!
You can use the existing directory parameter to achieve that, it will cd to the configured directory.

directory

Default: .

The working directory where the zip or tar actually runs.

path

Default: .

The path to the files or directory that should be archived, relative to directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants