Skip to content

sombriks/sample-gradle-package

Repository files navigation

sample-gradle-package

sampling publish gradle package on github

General documentation

Creating tokens and configuring secrets

publishing workflow

in order to create a package into the registry, there is a github action to call ./gradlew publish.

simply git tag <version>, push the tag and the workflow will kick in.

The publish command can be called directly from dev environment, just provide the needed variables:

GITHUB_ACTOR=<your github username>
GITHUB_TOKEN=<your personal access token>
GIT_TAG=<the desired tag>

except for GIT_TAG, those values are provided by github actions environment.

using the package

see this project

further enhancements

add a release in the github page containing the artifacts present on github package registry