JasonEtco/upload-to-release

Questions about this action

Andre601 opened this issue · 7 comments

I would like to use this to add jar-files to my release, but I'm not really sure, how I could implement this, which is why I ask here.

I have a Java project, using Gradle and already have set up a GitHub Action, to upload files to a site called Bintray, therefore creating a workflow, that already generates the jar files.

My current setup of the workflow can be found here.
My current setup for Gradle can be found here.

I would appreciate any kind of help, to implement this, if possible.

Hello 👋 I'm not quite sure what you're asking. You should be able to drop this action in like any other. Maybe something like:

     - name: Build and publish (Bintray)
       env:
         bintrayUser: ${{ secrets.bintrayUsername }}
         bintrayApiKey: ${{ secrets.bintrayApiKey }}
       run: ./gradlew bintrayUpload
+    - name: Upload to release
+        uses: JasonEtco/upload-to-release@master
+        with:
+          args: <FILE>
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Hopefully that helps!

Okay.
I'm not quite sure about one thing tho: Does the file name have to be a specific file name, or could it be like any filename available?
Because when I run my upload task is the file uploaded as four types of files:

  • javabotblockapi-{version}-javadoc.jar
  • javabotblockapi-{version}-sources.jar
  • javabotblockapi-{version}.jar
  • javabotblockapi-{version}.pom

Do I have to specify a specific file name, does it not matter, or could I use placeholders for things like the version, to have the file be like javabotblockapi-3.0.0,jar?

bump

Right now it has to be a specific file name - #7 was a step towards using globs instead. If you're up for a PR adding glob support that'd be great!

I do not have any experience with making such PRs as it's not the kind of language I work with.

Well now's as good a time as any to learn! ❤️ I'm happy to work with you in a PR. I'm not a bash expert myself either, so we'll be learning together.

Hey guys any leads? I am looking for something similar, like I have to simply upload a file present in my Repo to GitHub releases, GitHub Actions Workflow is also set but don't know why it shows error :(