utPLSQL-cli icon indicating copy to clipboard operation
utPLSQL-cli copied to clipboard

Github Actions to create release artifacts

Open pesse opened this issue 3 years ago • 5 comments

At the moment, there is no Github Actions workflow to create release artifacts.

What it should include:

  • update utplsql-cli.version
  • mvn package verify jar:jar appassembler:assemble
  • make sure jar is copied to assembly/lib
  • Creating .zip and .zip.md5 files of assembly

Any help really appreciated.

pesse avatar Jun 09 '22 07:06 pesse

I'll be happy to look into that

jgebal avatar Jun 09 '22 07:06 jgebal

@pesse and @jgebal Have you had a look at how I do that in https://github.com/utPLSQL/utPLSQL-maven-plugin

I even deploy to Maven Central.

simasch avatar Jun 09 '22 07:06 simasch

  1. Step: use GitHub Packages
  2. Step: use JReleaser to deploy to various platforms (GitHub Packages, sdkman etc)

simasch avatar Jun 09 '22 07:06 simasch

Hello! FWIW you can use Maven's appassembler and assembly plugins to create binary distributions. The 1st plugin creates the layout with a launchable script plus all dependencies while the second creates a zip file. Once you have a binary distribution releasing with JReleaser is pretty much straight forward, as shown at

https://jreleaser.org/guide/latest/quick-start/maven.html https://github.com/aalmiray/app/

Be aware that releasing to GitHub Packages still requires consumers to input their GitHub credentials for reading.

aalmiray avatar Jun 17 '22 08:06 aalmiray

Thanks @aalmiray We already use these two plugins plus a checksum plugin to add the files to the release in Github. We will not use Github Packages.

simasch avatar Jun 17 '22 09:06 simasch