Skip to content

Obtain .jar File using Gradle for Java #26016

Answered by weide-zhou
mciolkosz asked this question in Actions
Discussion options

You must be logged in to vote

Hi @mciolkosz,

You can upload the jar file as an artifact, and download artifacts from the workflow.

- uses: actions/upload-artifact@v2
  with:
    name: my-artifact
    path: build/libs/project.jar

You can also upload the directory ‘build/libs’ to upload all jar files.

Please check official doc for more details:
https://docs.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-gradle#packaging-workflow-data-as-artifacts

Thanks

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants