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

Support path exclusion #33

Open
mara004 opened this issue Nov 5, 2022 · 3 comments
Open

Support path exclusion #33

mara004 opened this issue Nov 5, 2022 · 3 comments
Labels
enhancement New feature or request inclusion/exclusion Related to file inclusion/exclusion and symlinks

Comments

@mara004
Copy link

mara004 commented Nov 5, 2022

When publishing Sphinx documentation, I noticed that the uploaded artifact is unnecessarily large because the .doctrees directory is included, so I tried to exclude it like this (as would be possible with upload-artifact):

- name: Upload artifact
  uses: actions/upload-pages-artifact@v1
  with:
    path: |
      docs/build/html
      !docs/build/html/.doctrees

However, with upload-pages-artifact, this yields an error when calling tar:

tar: docs/build/html\n!docs/build/html/.doctrees\n: Cannot open: No such file or directory
@mara004
Copy link
Author

mara004 commented Nov 7, 2022

Workaround: Just remove the files to exclude. (In my case, this shrinked the artifact from 12 to 5 MB.)

@mswist
Copy link

mswist commented Mar 20, 2023

Same issue for me - would be good if this action supports standard upload-artifact syntax

@JamesMGreene JamesMGreene added inclusion/exclusion Related to file inclusion/exclusion and symlinks enhancement New feature or request labels Mar 24, 2023
@zumbiepig
Copy link

zumbiepig commented Apr 25, 2024

bump

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

No branches or pull requests

4 participants