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 |
Follow https://central.sonatype.org/pages/manual-staging-bundle-creation-and-deployment.html as Bintray will be gone by May, 1st.
bach/.github/workflows/release.yml
Lines 125 to 146 in e5587da