Bintray Maven Publisher Action aims to upload simple maven artifacts to a Bintray repository.
The following input files can be defined:
- POM
- Jar
- Source Jar
- Javadoc Jar
Once the artifacts are generated by your build tool (and maybe even published to Github Packages), this action can quickly and easily upload them to your Bintray repository as well. No need to define multiple repositories or configure some external tool to sync from Github Packages.
- Identifies version name from the tag pointing at the current commit (HEAD). Tag format must match Bintray version format.
- Verifies whether the version exists for the package in your Bintray repository
- Creates a new version if needed
- Uploads the specified artifacts (and leaves them unpublished so that you can verify everything is as expected)
- name: Publish to Bintray
uses: nagyesta/bintray-maven-publisher-action@v1.1.0
with:
DEBUG_LOG: "true"
INFO_LOG: "true"
WARN_LOG: "true"
ERROR_LOG: "true"
DRY_RUN: "true"
POM_FILE_NAME: "build/publications/mavenJava/pom-default.xml"
JAR_FILE_NAME: "build/libs/build-*[0-9].jar"
SOURCE_JAR_FILE_NAME: "build/libs/build-*[0-9]-sources.jar"
JAVADOC_JAR_FILE_NAME: "build/libs/build-*[0-9]-javadoc.jar"
ARTIFACT_GROUP_ID: "com.github.nagyesta.example"
ARTIFACT_ARTIFACT_ID: "action-artifact"
ARTIFACT_VERSION: "1.0.0"
API_USER: "nagyesta"
API_KEY: "${{ secrets.BINTRAY_TOKEN }}"
SUBJECT: "nagyesta"
REPO: "sandbox"
PACKAGE_NAME: "action-artifact"
BINTRAY_VERSION_PREFIX: "v"
BASE_URL: "https://api.bintray.com/"
manifest.bau
# GROUP_ID:ARTIFACT_ID:CLASSIFIER:PACKAGING:File pattern
com.github.gh-user:artifact.name:-:pom:pom.xml
com.github.gh-user:artifact.name:-:jar:*-?.?.?.jar.content
com.github.gh-user:artifact.name:sources:jar:*sources.jar.content
com.github.gh-user:artifact.name:javadoc:jar:dummy-?.?.?-javadoc.jar.content
com.github.gh-user:artifact.name-pom-only:-:pom:pom.xml
com.github.gh-user:artifact.name-alt:-:pom:pom.xml
com.github.gh-user:artifact.name-alt:-:jar:dummy-1.2.3.jar.content
com.github.gh-user:artifact.name-alt:sources:jar:*-1.2.3-sources.jar.content
com.github.gh-user:artifact.name-alt:javadoc:jar:dummy-1.2.3-javadoc.jar.content
Action
- name: Publish to Bintray
uses: nagyesta/bintray-maven-publisher-action@v1.1.0
with:
DEBUG_LOG: "true"
INFO_LOG: "true"
WARN_LOG: "true"
ERROR_LOG: "true"
DRY_RUN: "true"
MANIFEST: "manifest.bau"
ARTIFACT_VERSION: "1.0.0"
API_USER: "nagyesta"
API_KEY: "${{ secrets.BINTRAY_TOKEN }}"
SUBJECT: "nagyesta"
REPO: "sandbox"
PACKAGE_NAME: "action-artifact"
BINTRAY_VERSION_PREFIX: "v"
BASE_URL: "https://api.bintray.com/"