From 8f58782027225eca7cb4a9d0fe29cf7c899485ba Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Mon, 5 Feb 2024 18:50:37 +0100 Subject: [PATCH] Add badge for the continuous deployment --- .github/workflows/publish.yml | 36 ----------------------------------- README.md | 1 + 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index d5800e7..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Publish to Maven Central - -on: - release: - types: [published] - -jobs: - publish: - runs-on: ubuntu-20.04 - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up JDK 11 - uses: actions/setup-java@v2 - with: - distribution: adopt - java-version: 11 - - - name: Install dependencies - run: bash ./install_deps.sh - - - name: Compile and prepare package - run: ./gradlew buildHeaders build assemble androidSourcesJar - - - name: Publish - run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository - if: github.event_name == 'release' - env: - OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} - OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} - SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} - SIGNING_KEY: ${{ secrets.SIGNING_KEY }} - SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} diff --git a/README.md b/README.md index ca6609c..1402b13 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Library for accessing [libkiwix](https://github.com/kiwix/libkiwix) and [libzim] [![Maven Central](https://img.shields.io/maven-central/v/org.kiwix/libkiwix)](https://search.maven.org/artifact/org.kiwix/libkiwix) [![Build Status](https://github.com/kiwix/java-libkiwix/workflows/CI/badge.svg?query=branch%3Amain)](https://github.com/kiwix/java-libkiwix/actions?query=workflow%3ACI+branch%3Amain) +[![Continuous Deployment](https://github.com/kiwix/java-libkiwix/workflows/CD/badge.svg?query=branch%3Amain)](https://github.com/kiwix/java-libkiwix/actions?query=workflow%3ACD+branch%3Amain) [![CodeFactor](https://www.codefactor.io/repository/github/kiwix/java-libkiwix/badge)](https://www.codefactor.io/repository/github/kiwix/java-libkiwix) [![Codecov](https://codecov.io/gh/kiwix/java-libkiwix/branch/main/graph/badge.svg)](https://codecov.io/gh/kiwix/java-libkiwix) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)