Skip to content

Deploy releases to OSSRH/Central #204

@sormuras

Description

@sormuras

Follow https://central.sonatype.org/pages/manual-staging-bundle-creation-and-deployment.html as Bintray will be gone by May, 1st.

deploy-to-bintray:
needs: [ setup, build ]
runs-on: ubuntu-latest
steps:
- name: 'Download build artifact ${{ needs.setup.outputs.version }}'
uses: actions/download-artifact@v2
with:
name: ${{ github.event.repository.name }}-build-${{ needs.setup.outputs.version }}
- name: 'Set up Maven (Bintray)'
uses: actions/setup-java@v1
with: # https://github.com/actions/setup-java#publishing-using-apache-maven
java-version: 11
server-id: bintray-sormuras-maven
server-username: BINTRAY_USERNAME
server-password: BINTRAY_PASSWORD
- name: 'Deploy to https://bintray.com/sormuras/maven/bach'
env:
BINTRAY_USERNAME: sormuras
BINTRAY_PASSWORD: ${{ secrets.BINTRAY_KEY }}
DEPLOY: '--batch-mode --no-transfer-progress org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file'
REPOSITORY: '-DrepositoryId=bintray-sormuras-maven -Durl=https://api.bintray.com/maven/sormuras/maven/bach/;publish=1'
run: for f in .bach/workspace/deploy/maven/*.files ; do mvn ${DEPLOY} ${REPOSITORY} $(cat ${f}) ; done

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions