diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml new file mode 100644 index 0000000..90facb9 --- /dev/null +++ b/.github/workflows/release-publish.yml @@ -0,0 +1,62 @@ +name: Release and Publish to Maven Central + +on: + workflow_dispatch: + inputs: + version: + description: 'Release version' + required: true + type: string + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: 'maven' + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: GPG_PASSPHRASE + + - name: Import GPG key + run: | + echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --dearmor > ~/.gnupg/secring.gpg + gpg --import ~/.gnupg/secring.gpg + + - name: Release accessors-smart + run: | + cd accessors-smart + ./mvnw clean deploy -P release-sign-artifacts + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: Release json-smart + run: | + cd json-smart + ./mvnw clean deploy -P release-sign-artifacts + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: Release json-smart-action + run: | + cd json-smart-action + ./mvnw clean deploy -P release-sign-artifacts + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} \ No newline at end of file diff --git a/README.md b/README.md index 9d9b3d4..60d95cb 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ So I do not use my json-smart anymore. I had fun with this project. If you want * JSONObject merge support overwrite as parameter. [PR 238](https://github.com/netplex/json-smart-v2/pull/238) * Add `JSONParser.ACCEPT_INCOMPLETE` to allow parsing partial and incomplete JSON without error [PR 254](https://github.com/netplex/json-smart-v2/pull/254) +* Add multiple JSON syntax blocks in a single input [PR 272](https://github.com/netplex/json-smart-v2/pull/272) ### *V 2.5.2* (2025-02-12) diff --git a/accessors-smart/pom.xml b/accessors-smart/pom.xml index 98621d7..7305547 100644 --- a/accessors-smart/pom.xml +++ b/accessors-smart/pom.xml @@ -1,5 +1,5 @@