-
Notifications
You must be signed in to change notification settings - Fork 12
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/wildcard upload #21
Comments
The current action can't handle multiple packages at once (this is maybe something that could be added to the cloudsmith cli tool itself rather than the action?) but wildcards do work, you can do something like: file: debian/artifacts/package-name_*_amd64.deb to publish a package regardless of the possibly generated version number. You could also have a step which saves the package version to an env variable, like - run: echo "PACKAGE_VERSION=$(dpkg-parsechangelog -S version)" >> $GITHUB_ENV
- uses: cloudsmith-io/action@master
with:
file: debian/artifacts/package-name_${{ env.PACKAGE_VERSION }}_amd64.deb |
+1 this should added |
@kepstin Not sure it actually works the way you intended. I'm trying to pass a file retrieved by actions/download-artifact using something like |
Allowing for multiple files to be uploaded would be exceedingly useful. For example, using cibuildwheel to create python wheels for multiple architectures and/or python versions would output multiple files in a single build run (e.g. https://github.com/modem7/cibuildwheel/actions/runs/4298866331), which would need to be uploaded. Currently, I have to wait for the run to complete, download the files, and then use the cli to upload to cloudsmith, which is rather cumbersome (even more so because the CLI also doesn't support multiple files). |
Would that then translate "transparently" to the action? And do you know if there is an open issue for that, by any chance? |
Is it possible to upload multiple files in one go?
My project produces several .deb files, all of them need to be published.
Ideally, I'd like to do something like
Even if multiple files are not supported, it is still not clear how to specify
file
when file name is dynamically generated (like, it contains version number in its name).The text was updated successfully, but these errors were encountered: