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

Multiple artifact (wildcard) support #1

Closed
tsl0922 opened this issue Aug 28, 2019 · 4 comments
Closed

Multiple artifact (wildcard) support #1

tsl0922 opened this issue Aug 28, 2019 · 4 comments
Assignees

Comments

@tsl0922
Copy link

tsl0922 commented Aug 28, 2019

This would not work.

jobs:
  build:
    runs-on: ubuntu-16.04
    steps:
      - uses: actions/checkout@v1
      - uses: ncipollo/release-action@v1
        with:
          artifact: "bin/*"
          token: ${{ secrets.GITHUB_TOKEN }}
@ncipollo
Copy link
Owner

ncipollo commented Aug 28, 2019

Interesting idea - What is the expectation around how these files get uploaded to the release? Would each file in that directory be uploaded separately?

If you need to get something going in the mean time you could add a step prior to the release action which tars the contents of bin, then pass that path into the artifact argument.

@tsl0922
Copy link
Author

tsl0922 commented Aug 28, 2019

I'm trying to migrate a travis job to github action, travis-ci supports using array notation and glob pattern to specify files to be uploaded:

https://docs.travis-ci.com/user/deployment/releases/#uploading-multiple-files

@Herohtar
Copy link

Herohtar commented Sep 2, 2019

Each file would be uploaded separately. This would allow creating a release that had, for example, artifacts for different platforms, architectures, runtimes, etc. You can throw everything into a single archive file as a workaround, but ideally people shouldn't have to download an archive of everything just to get at the one they need.

@ncipollo ncipollo self-assigned this Sep 2, 2019
ncipollo added a commit that referenced this issue Sep 2, 2019
ncipollo added a commit that referenced this issue Sep 3, 2019
ncipollo added a commit that referenced this issue Sep 3, 2019
@ncipollo
Copy link
Owner

ncipollo commented Sep 3, 2019

Updated v1 tag. Added the following:

  • You can now provide a file glob for artifact (example/*)
  • You can now provide a comma-delimited list to artifact. Each entry in the list can also be a file glob.

ncipollo added a commit that referenced this issue Feb 17, 2025
rantoniuk added a commit to rantoniuk/ncipollo-release-action that referenced this issue Feb 17, 2025
* main:
  Attempt ncipollo#1 at fixing workflow file
  Add initial releases workflow
  Add biome and initial format rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants