Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy releases to OSSRH/Central #204

Open
sormuras opened this issue Feb 6, 2021 · 0 comments
Open

Deploy releases to OSSRH/Central #204

sormuras opened this issue Feb 6, 2021 · 0 comments

Comments

@sormuras
Copy link
Owner

sormuras commented Feb 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant