From 23ed9b251e198db8718e28b6e0ac53dffebf48d6 Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Mon, 5 Feb 2024 18:46:58 +0100 Subject: [PATCH 1/3] Update Changelog before release --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index 5f5a697..cfddda1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,5 @@ 1.0.2 +* NEW: Fix crash when using more than 512 bookmarks (@mgautierfr https://github.com/kiwix/java-libkiwix/issues/80) * NEW: libkiwix 13.0.0 and libzim 9.1.0 (@mgautierfr https://github.com/kiwix/java-libkiwix/pull/68) * NEW: libkiwix and libzim with debug symbols (@mgautierfr https://github.com/kiwix/kiwix-build/pull/664) From 99d3c07dcbe87ab0cbb30fed6164dda06b15af7e Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Mon, 5 Feb 2024 18:49:18 +0100 Subject: [PATCH 2/3] Rename CD workflow --- .github/workflows/cd.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..286ad97 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,36 @@ +name: CD + +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 to Maven Central + 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 }} From 8f58782027225eca7cb4a9d0fe29cf7c899485ba Mon Sep 17 00:00:00 2001 From: Emmanuel Engelhart Date: Mon, 5 Feb 2024 18:50:37 +0100 Subject: [PATCH 3/3] 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)