Skip to content

Added action for create GitHub release #13

Added action for create GitHub release

Added action for create GitHub release #13

name: Publish to Maven Central Repository
on: push
jobs:
build:
name: Publish to Maven Central Repository
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Setup variables in local.properties
run: |
echo "signing_keyId=${{secrets.SIGNING_KEY_ID}}" > local.properties
echo "signing_password=${{secrets.SIGNING_PASSWORD}}" >> local.properties
echo "username=${{secrets.MAVEN_CENTRAL_USER_NAME}}" >> local.properties
echo "password=${{secrets.MAVEN_CENTRAL_PASSWORD}}" >> local.properties
- name: Setup gpg private key
run: |
echo "${{secrets.GPG_PRIVATE_KEY}}" > maven-secret-key.asc
- name: Publish to new Maven Central Repository
run: |
./gradlew publishAllPublicationsToCentralPortal