From 33990b9f6360c3a52b338ce8d52c8969a1536df8 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Fri, 6 Sep 2024 07:17:23 +0100 Subject: [PATCH 01/13] fix: added dummy workflow test --- .github/workflows/maven-publish.yml | 66 +++++++++++-------- src/test/resources/file.json | 12 ++-- src/test/resources/issue/jsonfile.json | 8 +-- .../resources/multiple_rich_text_content.json | 8 +-- src/test/resources/reports/article2.json | 4 +- src/test/resources/reports/article3.json | 4 +- src/test/resources/reports/article4.json | 12 ++-- src/test/resources/reports/issue007.json | 56 ++++++++-------- 8 files changed, 89 insertions(+), 81 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 8c073f1..7631c81 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -1,7 +1,8 @@ name: Publish package to the Maven Central Repository on: - release: - types: [ created ] + pull_request: + # release: + # types: [ created ] jobs: publish-maven: runs-on: ubuntu-latest @@ -15,30 +16,37 @@ jobs: with: java-version: '11' distribution: 'adopt' - server-id: ossrh - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg-passphrase: GPG_PASSPHRASE - - name: Publish package - run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy - env: - MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - publish-github: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Java for publishing to GitHub Packages - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'adopt' - server-id: github - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} - - name: Publish to GitHub Packages - run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + # server-id: ossrh + # server-username: MAVEN_USERNAME + # server-password: MAVEN_PASSWORD + # gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + # gpg-passphrase: GPG_PASSPHRASE + # Build and publish to a local Maven repository for testing + - name: Build and Publish to Local Maven Repository + run: mvn --batch-mode clean install deploy -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository + + # - name: Publish package + # run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy + # env: + # MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + # MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + # GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + # Optional: Verify the artifacts are published in the local repository + - name: Verify Local Publish + run: ls -R $HOME/.m2/repository/com.contentstack.sdk/utils + # publish-github: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - name: Set up Java for publishing to GitHub Packages + # uses: actions/setup-java@v3 + # with: + # java-version: '11' + # distribution: 'adopt' + # server-id: github + # gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + # gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} + # - name: Publish to GitHub Packages + # run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/src/test/resources/file.json b/src/test/resources/file.json index b2c75a8..734c309 100644 --- a/src/test/resources/file.json +++ b/src/test/resources/file.json @@ -14,7 +14,7 @@ "display-type": "display", "asset-uid": "blt51f558a28ef555ca", "content-type-uid": "sys_assets", - "asset-link": "https://images.contentstack.io/v3/assets/blt6fc934a068135ff9/blt51f558a28ef555ca/6643371882c344cb839ec1a8/ben.jpeg", + "asset-link": "https://images.contentstack.io/v3/assets/***REMOVED***/blt51f558a28ef555ca/6643371882c344cb839ec1a8/ben.jpeg", "asset-name": "Designer.png", "asset-type": "image/jpeg", "type": "asset", @@ -47,7 +47,7 @@ { "node": { "title": "Designer.png", - "url": "https://images.contentstack.io/v3/assets/blt6fc934a068135ff9/blt51f558a28ef555ca/66545ff10258be81fc639ae5/Virginia_Woolf_Headshot.jpg", + "url": "https://images.contentstack.io/v3/assets/***REMOVED***/blt51f558a28ef555ca/66545ff10258be81fc639ae5/Virginia_Woolf_Headshot.jpg", "system": { "uid": "blt51f558a28ef555ca", "content_type_uid": "sys_assets" @@ -63,7 +63,7 @@ { "node": { "title": "W._E._B._Du_Bois_Headshot.jpg", - "url": "https://images.contentstack.io/v3/assets/blt6fc934a068135ff9/blt897c06ebf8c6353a/66545fe479abeeb60a3d4e35/Mark_Twain_Headshot.jpg", + "url": "https://images.contentstack.io/v3/assets/***REMOVED***/blt897c06ebf8c6353a/66545fe479abeeb60a3d4e35/Mark_Twain_Headshot.jpg", "system": { "content_type_uid": "sys_assets", "uid": "blt897c06ebf8c6353a" @@ -73,7 +73,7 @@ { "node": { "title": "iot-icon.png", - "url": "https://images.contentstack.io/v3/assets/blt6fc934a068135ff9/bltbd81ff2ed42f1317/6654501e466a1c9b3edecb21/iot-icon.png", + "url": "https://images.contentstack.io/v3/assets/***REMOVED***/bltbd81ff2ed42f1317/6654501e466a1c9b3edecb21/iot-icon.png", "system": { "content_type_uid": "sys_assets", "uid": "bltbd81ff2ed42f1317" @@ -94,7 +94,7 @@ "display-type": "display", "asset-uid": "blt897c06ebf8c6353a", "content-type-uid": "sys_assets", - "asset-link": "https://images.contentstack.io/v3/assets/blt6fc934a068135ff9/blt897c06ebf8c6353a/6644340e015b1c2d2b56ca48/W._E._B._Du_Bois_Headshot.jpg", + "asset-link": "https://images.contentstack.io/v3/assets/***REMOVED***/blt897c06ebf8c6353a/6644340e015b1c2d2b56ca48/W._E._B._Du_Bois_Headshot.jpg", "asset-name": "W._E._B._Du_Bois_Headshot.jpg", "asset-type": "image/jpeg", "type": "asset", @@ -126,7 +126,7 @@ "display-type": "display", "asset-uid": "bltbd81ff2ed42f1317", "content-type-uid": "sys_assets", - "asset-link": "https://images.contentstack.io/v3/assets/blt6fc934a068135ff9/bltbd81ff2ed42f1317/664425e3a3f9df03dfc0e5e6/5216292.jpg", + "asset-link": "https://images.contentstack.io/v3/assets/***REMOVED***/bltbd81ff2ed42f1317/664425e3a3f9df03dfc0e5e6/5216292.jpg", "asset-name": "iot-icon.png", "asset-type": "image/jpeg", "type": "asset", diff --git a/src/test/resources/issue/jsonfile.json b/src/test/resources/issue/jsonfile.json index 6b5bdd9..89ef2a6 100644 --- a/src/test/resources/issue/jsonfile.json +++ b/src/test/resources/issue/jsonfile.json @@ -336,12 +336,12 @@ } ], "multi_line": "Multi line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textbox", - "rich_text_editor": "\"220px-Bastet_Istanbul_museum.JPG\"", + "rich_text_editor": "\"220px-Bastet_Istanbul_museum.JPG\"", "single_line": "Single line textbox", "suraj_123": [ { "single_line": "Multi line textbox", - "rich_text_editor": "\"220px-House_sparrow04.jpg\"", + "rich_text_editor": "\"220px-House_sparrow04.jpg\"", "markdown": "Multi line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textbox", "number": 45346346 } @@ -670,12 +670,12 @@ } ], "multi_line": "Multi line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textbox", - "rich_text_editor": "\"220px-Bastet_Istanbul_museum.JPG\"", + "rich_text_editor": "\"220px-Bastet_Istanbul_museum.JPG\"", "single_line": "Single line textbox", "suraj_123": [ { "single_line": "Multi line textbox", - "rich_text_editor": "\"220px-House_sparrow04.jpg\"", + "rich_text_editor": "\"220px-House_sparrow04.jpg\"", "markdown": "Multi line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textbox", "number": 45346346 } diff --git a/src/test/resources/multiple_rich_text_content.json b/src/test/resources/multiple_rich_text_content.json index 001db60..5caad6e 100644 --- a/src/test/resources/multiple_rich_text_content.json +++ b/src/test/resources/multiple_rich_text_content.json @@ -282,11 +282,11 @@ } }], "multi_line": "Multi line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textbox", - "rich_text_editor": "\"220px-Bastet_Istanbul_museum.JPG\"", + "rich_text_editor": "\"220px-Bastet_Istanbul_museum.JPG\"", "single_line": "Single line textbox", "suraj_123": [{ "single_line": "Multi line textbox", - "rich_text_editor": "\"220px-House_sparrow04.jpg\"", + "rich_text_editor": "\"220px-House_sparrow04.jpg\"", "markdown": "Multi line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textbox", "number": 45346346 @@ -586,11 +586,11 @@ } }], "multi_line": "Multi line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textbox", - "rich_text_editor": "\"220px-Bastet_Istanbul_museum.JPG\"", + "rich_text_editor": "\"220px-Bastet_Istanbul_museum.JPG\"", "single_line": "Single line textbox", "suraj_123": [{ "single_line": "Multi line textbox", - "rich_text_editor": "\"220px-House_sparrow04.jpg\"", + "rich_text_editor": "\"220px-House_sparrow04.jpg\"", "markdown": "Multi line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textboxMulti line textbox", "number": 45346346 diff --git a/src/test/resources/reports/article2.json b/src/test/resources/reports/article2.json index 034ea67..2ae41a8 100644 --- a/src/test/resources/reports/article2.json +++ b/src/test/resources/reports/article2.json @@ -1444,7 +1444,7 @@ "display-type": "display", "asset-uid": "blt1e8458b798a67cf5", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt1e8458b798a67cf5/650b78874f22f8000d8c82e5/couldnt_submit_shipment.png", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt1e8458b798a67cf5/650b78874f22f8000d8c82e5/couldnt_submit_shipment.png", "asset-name": "couldnt_submit_shipment.png", "asset-type": "image/png", "type": "asset", @@ -1597,7 +1597,7 @@ "file_size": "97657", "tags": [], "filename": "couldnt_submit_shipment.png", - "url": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt1e8458b798a67cf5/650b78874f22f8000d8c82e5/couldnt_submit_shipment.png", + "url": "***REMOVED***/v3/assets/***REMOVED***/blt1e8458b798a67cf5/650b78874f22f8000d8c82e5/couldnt_submit_shipment.png", "ACL": [], "parent_uid": "blt7c541342b35c3564", "_version": 1, diff --git a/src/test/resources/reports/article3.json b/src/test/resources/reports/article3.json index 2a16fdc..0234e59 100644 --- a/src/test/resources/reports/article3.json +++ b/src/test/resources/reports/article3.json @@ -546,7 +546,7 @@ "display-type": "display", "asset-uid": "blt80fc6f2ccca9406a", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt80fc6f2ccca9406a/64fa50d5b979ea000d97a176/Big_and_Bulky.png", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt80fc6f2ccca9406a/64fa50d5b979ea000d97a176/Big_and_Bulky.png", "asset-name": "Big_and_Bulky.png", "asset-type": "image/png", "type": "asset", @@ -1935,7 +1935,7 @@ "file_size": "136896", "tags": [], "filename": "Big_and_Bulky.png", - "url": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt80fc6f2ccca9406a/64fa50d5b979ea000d97a176/Big_and_Bulky.png", + "url": "***REMOVED***/v3/assets/***REMOVED***/blt80fc6f2ccca9406a/64fa50d5b979ea000d97a176/Big_and_Bulky.png", "ACL": [], "parent_uid": "blt7fdffe41992d7f16", "_version": 1, diff --git a/src/test/resources/reports/article4.json b/src/test/resources/reports/article4.json index 8736701..27bf23b 100644 --- a/src/test/resources/reports/article4.json +++ b/src/test/resources/reports/article4.json @@ -765,7 +765,7 @@ "display-type": "display", "asset-uid": "blt759bd3ebb372f518", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt759bd3ebb372f518/6500d116a39049000db76491/Image_1.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt759bd3ebb372f518/6500d116a39049000db76491/Image_1.jpeg", "asset-name": "Image_1.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -867,7 +867,7 @@ "display-type": "display", "asset-uid": "blta55d379a7c380155", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blta55d379a7c380155/6500d116a39049000db7648d/Image_2.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blta55d379a7c380155/6500d116a39049000db7648d/Image_2.jpeg", "asset-name": "Image_2.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -973,7 +973,7 @@ "display-type": "display", "asset-uid": "blt691bf4de7736a124", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt691bf4de7736a124/6500d117103154000dae6bd7/Image_3.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt691bf4de7736a124/6500d117103154000dae6bd7/Image_3.jpeg", "asset-name": "Image_3.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -1256,7 +1256,7 @@ "file_size": "370751", "tags": [], "filename": "Image_1.jpeg", - "url": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt759bd3ebb372f518/6500d116a39049000db76491/Image_1.jpeg", + "url": "***REMOVED***/v3/assets/***REMOVED***/blt759bd3ebb372f518/6500d116a39049000db76491/Image_1.jpeg", "ACL": [], "parent_uid": "bltecb4c7ac7cba49cf", "_version": 1, @@ -1282,7 +1282,7 @@ "file_size": "432469", "tags": [], "filename": "Image_2.jpeg", - "url": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blta55d379a7c380155/6500d116a39049000db7648d/Image_2.jpeg", + "url": "***REMOVED***/v3/assets/***REMOVED***/blta55d379a7c380155/6500d116a39049000db7648d/Image_2.jpeg", "ACL": [], "parent_uid": "bltecb4c7ac7cba49cf", "_version": 1, @@ -1308,7 +1308,7 @@ "file_size": "178058", "tags": [], "filename": "Image_3.jpeg", - "url": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt691bf4de7736a124/6500d117103154000dae6bd7/Image_3.jpeg", + "url": "***REMOVED***/v3/assets/***REMOVED***/blt691bf4de7736a124/6500d117103154000dae6bd7/Image_3.jpeg", "ACL": [], "parent_uid": "bltecb4c7ac7cba49cf", "_version": 1, diff --git a/src/test/resources/reports/issue007.json b/src/test/resources/reports/issue007.json index 54e7f35..976653a 100644 --- a/src/test/resources/reports/issue007.json +++ b/src/test/resources/reports/issue007.json @@ -160,7 +160,7 @@ "text": " " } ], - "uid": "eaac147bdd274e57b9c62175cd6e9ec9" + "uid": "***REMOVED***" }, { "text": "" @@ -596,7 +596,7 @@ "display-type": "display", "asset-uid": "blt3ac5326ad75c23c1", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt3ac5326ad75c23c1/64ff36e00812c3000a04e7c2/7667.gif", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt3ac5326ad75c23c1/64ff36e00812c3000a04e7c2/7667.gif", "asset-name": "7667.gif", "asset-type": "image/gif", "type": "asset", @@ -696,7 +696,7 @@ "display-type": "display", "asset-uid": "blt7b78a9dd75a31b47", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt7b78a9dd75a31b47/64ff370fa39049000db760b8/rtaImage_(26).jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt7b78a9dd75a31b47/64ff370fa39049000db760b8/rtaImage_(26).jpeg", "asset-name": "rtaImage_(26).jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -856,7 +856,7 @@ "display-type": "display", "asset-uid": "blta6f1f0e7fe266d3f", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blta6f1f0e7fe266d3f/65087f426517c0000dfcb255/rtaImage_-_2023-09-18T094741.995.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blta6f1f0e7fe266d3f/65087f426517c0000dfcb255/rtaImage_-_2023-09-18T094741.995.jpeg", "asset-name": "rtaImage_-_2023-09-18T094741.995.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -956,7 +956,7 @@ "display-type": "display", "asset-uid": "bltcaa03bd408b030ea", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/bltcaa03bd408b030ea/65087f6c380e94000a18896c/rtaImage_-_2023-09-18T094828.540.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/bltcaa03bd408b030ea/65087f6c380e94000a18896c/rtaImage_-_2023-09-18T094828.540.jpeg", "asset-name": "rtaImage_-_2023-09-18T094828.540.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -1025,7 +1025,7 @@ "display-type": "display", "asset-uid": "blt37ea67f83b7296a9", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt37ea67f83b7296a9/65087faca39049000db77846/rtaImage_-_2023-09-18T094930.009.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt37ea67f83b7296a9/65087faca39049000db77846/rtaImage_-_2023-09-18T094930.009.jpeg", "asset-name": "rtaImage_-_2023-09-18T094930.009.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -1130,7 +1130,7 @@ "display-type": "display", "asset-uid": "blt9a040f6870840f3d", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt9a040f6870840f3d/65087fe6269cb7000ace3fed/rtaImage_-_2023-09-18T095028.304.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt9a040f6870840f3d/65087fe6269cb7000ace3fed/rtaImage_-_2023-09-18T095028.304.jpeg", "asset-name": "rtaImage_-_2023-09-18T095028.304.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -1457,7 +1457,7 @@ "display-type": "display", "asset-uid": "bltb9bbe5a6cd194057", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/bltb9bbe5a6cd194057/6508803fd63b5d000a9cd924/rtaImage_-_2023-09-18T095159.369.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/bltb9bbe5a6cd194057/6508803fd63b5d000a9cd924/rtaImage_-_2023-09-18T095159.369.jpeg", "asset-name": "rtaImage_-_2023-09-18T095159.369.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -1549,7 +1549,7 @@ "display-type": "display", "asset-uid": "bltecc3e6194d52b087", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/bltecc3e6194d52b087/6508806b269cb7000ace3ff1/rtaImage_-_2023-09-18T095240.404.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/bltecc3e6194d52b087/6508806b269cb7000ace3ff1/rtaImage_-_2023-09-18T095240.404.jpeg", "asset-name": "rtaImage_-_2023-09-18T095240.404.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -1625,7 +1625,7 @@ "display-type": "display", "asset-uid": "blt3e86d2491d932566", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt3e86d2491d932566/650880954f22f8000d8c7b79/rtaImage_-_2023-09-18T095319.050.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt3e86d2491d932566/650880954f22f8000d8c7b79/rtaImage_-_2023-09-18T095319.050.jpeg", "asset-name": "rtaImage_-_2023-09-18T095319.050.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -1722,7 +1722,7 @@ "display-type": "display", "asset-uid": "blta11605d23b0cbb0a", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blta11605d23b0cbb0a/650880cd103154000dae7f57/rtaImage_-_2023-09-18T095415.921.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blta11605d23b0cbb0a/650880cd103154000dae7f57/rtaImage_-_2023-09-18T095415.921.jpeg", "asset-name": "rtaImage_-_2023-09-18T095415.921.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -1805,7 +1805,7 @@ "display-type": "display", "asset-uid": "blt30e7dfc04df37f95", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt30e7dfc04df37f95/650880fc4f22f8000d8c7b82/rtaImage_-_2023-09-18T095500.557.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt30e7dfc04df37f95/650880fc4f22f8000d8c7b82/rtaImage_-_2023-09-18T095500.557.jpeg", "asset-name": "rtaImage_-_2023-09-18T095500.557.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -2025,7 +2025,7 @@ "display-type": "display", "asset-uid": "blt702e8734e2fed7c4", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt702e8734e2fed7c4/650881376517c0000dfcb263/rtaImage_-_2023-09-18T095554.987.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt702e8734e2fed7c4/650881376517c0000dfcb263/rtaImage_-_2023-09-18T095554.987.jpeg", "asset-name": "rtaImage_-_2023-09-18T095554.987.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -2250,7 +2250,7 @@ "display-type": "display", "asset-uid": "blt45bf67d4d60a48cb", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt45bf67d4d60a48cb/6508823d6517c0000dfcb26d/rtaImage_-_2023-09-18T095854.808.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt45bf67d4d60a48cb/6508823d6517c0000dfcb26d/rtaImage_-_2023-09-18T095854.808.jpeg", "asset-name": "rtaImage_-_2023-09-18T095854.808.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -2577,7 +2577,7 @@ "display-type": "display", "asset-uid": "blta657be3f26a6e6c4", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blta657be3f26a6e6c4/6508828d6517c0000dfcb272/rtaImage_-_2023-09-18T100148.041.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blta657be3f26a6e6c4/6508828d6517c0000dfcb272/rtaImage_-_2023-09-18T100148.041.jpeg", "asset-name": "rtaImage_-_2023-09-18T100148.041.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -2646,7 +2646,7 @@ "display-type": "display", "asset-uid": "blt4ecce8fc93706a60", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt4ecce8fc93706a60/650882c0a39049000db7785c/rtaImage_-_2023-09-18T100237.804.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt4ecce8fc93706a60/650882c0a39049000db7785c/rtaImage_-_2023-09-18T100237.804.jpeg", "asset-name": "rtaImage_-_2023-09-18T100237.804.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -2715,7 +2715,7 @@ "display-type": "display", "asset-uid": "blt120fa9024a2c9623", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt120fa9024a2c9623/650882e7a39049000db77860/rtaImage_-_2023-09-18T100318.987.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt120fa9024a2c9623/650882e7a39049000db77860/rtaImage_-_2023-09-18T100318.987.jpeg", "asset-name": "rtaImage_-_2023-09-18T100318.987.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -2891,7 +2891,7 @@ "display-type": "display", "asset-uid": "blt388f503810e45210", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt388f503810e45210/65088368380e94000a188980/rtaImage_-_2023-09-18T100448.348.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt388f503810e45210/65088368380e94000a188980/rtaImage_-_2023-09-18T100448.348.jpeg", "asset-name": "rtaImage_-_2023-09-18T100448.348.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -3497,7 +3497,7 @@ "display-type": "display", "asset-uid": "blt8fe8ec2de66453e4", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt8fe8ec2de66453e4/650883d26517c0000dfcb27b/rtaImage_-_2023-09-18T100703.887.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt8fe8ec2de66453e4/650883d26517c0000dfcb27b/rtaImage_-_2023-09-18T100703.887.jpeg", "asset-name": "rtaImage_-_2023-09-18T100703.887.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -3632,7 +3632,7 @@ "display-type": "display", "asset-uid": "blt886c8f2ef564ee52", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt886c8f2ef564ee52/6508840fd63b5d000a9cd935/rtaImage_-_2023-09-18T100802.800.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt886c8f2ef564ee52/6508840fd63b5d000a9cd935/rtaImage_-_2023-09-18T100802.800.jpeg", "asset-name": "rtaImage_-_2023-09-18T100802.800.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -3873,7 +3873,7 @@ "display-type": "display", "asset-uid": "bltf93c8e91f02fa09f", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/bltf93c8e91f02fa09f/65088449d63b5d000a9cd939/rtaImage_-_2023-09-18T100902.181.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/bltf93c8e91f02fa09f/65088449d63b5d000a9cd939/rtaImage_-_2023-09-18T100902.181.jpeg", "asset-name": "rtaImage_-_2023-09-18T100902.181.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -4238,7 +4238,7 @@ "display-type": "display", "asset-uid": "blte313047d7d705499", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blte313047d7d705499/65088493269cb7000ace4002/rtaImage_(27).png", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blte313047d7d705499/65088493269cb7000ace4002/rtaImage_(27).png", "asset-name": "rtaImage_(27).png", "asset-type": "image/png", "type": "asset", @@ -4498,7 +4498,7 @@ "display-type": "display", "asset-uid": "blt9757ec78b480abc5", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt9757ec78b480abc5/650884f4269cb7000ace4006/Remove_Variants_(2).png", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt9757ec78b480abc5/650884f4269cb7000ace4006/Remove_Variants_(2).png", "asset-name": "Remove_Variants_(2).png", "asset-type": "image/png", "type": "asset", @@ -4594,7 +4594,7 @@ "display-type": "display", "asset-uid": "blt5836f49fccc75730", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt5836f49fccc75730/65088535e877e9000ae88e34/rtaImage_-_2023-09-18T101306.095.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt5836f49fccc75730/65088535e877e9000ae88e34/rtaImage_-_2023-09-18T101306.095.jpeg", "asset-name": "rtaImage_-_2023-09-18T101306.095.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -4674,7 +4674,7 @@ "display-type": "display", "asset-uid": "blt7786512e2c01899a", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt7786512e2c01899a/65088560103154000dae7f6e/rtaImage_-_2023-09-18T101351.206.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt7786512e2c01899a/65088560103154000dae7f6e/rtaImage_-_2023-09-18T101351.206.jpeg", "asset-name": "rtaImage_-_2023-09-18T101351.206.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -4754,7 +4754,7 @@ "display-type": "display", "asset-uid": "blt78ff501a37adf5d6", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt78ff501a37adf5d6/650885946517c0000dfcb280/rtaImage_-_2023-09-18T101442.883.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt78ff501a37adf5d6/650885946517c0000dfcb280/rtaImage_-_2023-09-18T101442.883.jpeg", "asset-name": "rtaImage_-_2023-09-18T101442.883.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -4859,7 +4859,7 @@ "display-type": "display", "asset-uid": "blt7004615fb784971b", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blt7004615fb784971b/650885bca39049000db77869/rtaImage_-_2023-09-18T101524.314.jpeg", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blt7004615fb784971b/650885bca39049000db77869/rtaImage_-_2023-09-18T101524.314.jpeg", "asset-name": "rtaImage_-_2023-09-18T101524.314.jpeg", "asset-type": "image/jpeg", "type": "asset", @@ -4948,7 +4948,7 @@ "display-type": "display", "asset-uid": "blte644efc92e6967c3", "content-type-uid": "sys_assets", - "asset-link": "https://azure-na-images.contentstack.com/v3/assets/blta7903c6b840b702d/blte644efc92e6967c3/650885e74f22f8000d8c7b93/rtaImage_(28).png", + "asset-link": "***REMOVED***/v3/assets/***REMOVED***/blte644efc92e6967c3/650885e74f22f8000d8c7b93/rtaImage_(28).png", "asset-name": "rtaImage_(28).png", "asset-type": "image/png", "type": "asset", From 512c33aeeee9525a7715e83674338429c9c17782 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Fri, 6 Sep 2024 07:23:28 +0100 Subject: [PATCH 02/13] fix: maven publish take 2 --- .github/workflows/maven-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 7631c81..41be741 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -23,7 +23,7 @@ jobs: # gpg-passphrase: GPG_PASSPHRASE # Build and publish to a local Maven repository for testing - name: Build and Publish to Local Maven Repository - run: mvn --batch-mode clean install deploy -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository + run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository # - name: Publish package # run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy From 19b026a6e197b53e6a930f26a07b3d857f92101f Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Fri, 6 Sep 2024 07:27:31 +0100 Subject: [PATCH 03/13] fix: maven publish take 3 --- .github/workflows/maven-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 41be741..24bcf60 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -23,7 +23,7 @@ jobs: # gpg-passphrase: GPG_PASSPHRASE # Build and publish to a local Maven repository for testing - name: Build and Publish to Local Maven Repository - run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository + run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DskipTests=true -DskipNexusStaging=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository # - name: Publish package # run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy From d151f1ff9de82980a14ab244a304dd9a4137eaed Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Fri, 6 Sep 2024 07:28:58 +0100 Subject: [PATCH 04/13] fix: maven publish take 4 --- .github/workflows/maven-publish.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 24bcf60..16f47b2 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -16,11 +16,11 @@ jobs: with: java-version: '11' distribution: 'adopt' - # server-id: ossrh - # server-username: MAVEN_USERNAME - # server-password: MAVEN_PASSWORD - # gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - # gpg-passphrase: GPG_PASSPHRASE + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: GPG_PASSPHRASE # Build and publish to a local Maven repository for testing - name: Build and Publish to Local Maven Repository run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DskipTests=true -DskipNexusStaging=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository From c4ad6f526f771745dad2d03e280a6f00aa2e805e Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Fri, 6 Sep 2024 07:38:15 +0100 Subject: [PATCH 05/13] fix: maven publish take 5 --- .github/workflows/maven-publish.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 16f47b2..2160a13 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -22,8 +22,15 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: GPG_PASSPHRASE # Build and publish to a local Maven repository for testing - - name: Build and Publish to Local Maven Repository - run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DskipTests=true -DskipNexusStaging=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository + # - name: Build and Publish to Local Maven Repository + # run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DskipTests=true -DskipNexusStaging=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository + - name: Set up Maven settings + run: | + mkdir -p $HOME/.m2 + echo "ossrh${{ secrets.OSSRH_USERNAME }}${{ secrets.OSSRH_PASSWORD }}" > $HOME/.m2/settings.xml + + - name: Publish to Maven Central + run: mvn --batch-mode clean deploy # - name: Publish package # run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy From 26ee1dbdd734e211b1fe67b26fbdd01fce940acb Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Fri, 6 Sep 2024 07:39:55 +0100 Subject: [PATCH 06/13] fix: maven publish take 6 --- .github/workflows/maven-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 2160a13..4e632ff 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -29,8 +29,8 @@ jobs: mkdir -p $HOME/.m2 echo "ossrh${{ secrets.OSSRH_USERNAME }}${{ secrets.OSSRH_PASSWORD }}" > $HOME/.m2/settings.xml - - name: Publish to Maven Central - run: mvn --batch-mode clean deploy + - name: Build and Publish to Local Maven Repository + run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DskipTests=true -DskipNexusStaging=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository # - name: Publish package # run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy From ae8624d8f67032534457ec1aac84e73f99066b00 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Sun, 8 Sep 2024 13:43:41 +0100 Subject: [PATCH 07/13] fix: trying to publish with original config --- .github/workflows/maven-publish.yml | 61 +++++++++++------------------ 1 file changed, 23 insertions(+), 38 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 4e632ff..30e7abd 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -1,8 +1,7 @@ name: Publish package to the Maven Central Repository on: pull_request: - # release: - # types: [ created ] + # types: [ created ] jobs: publish-maven: runs-on: ubuntu-latest @@ -21,39 +20,25 @@ jobs: server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: GPG_PASSPHRASE - # Build and publish to a local Maven repository for testing - # - name: Build and Publish to Local Maven Repository - # run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DskipTests=true -DskipNexusStaging=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository - - name: Set up Maven settings - run: | - mkdir -p $HOME/.m2 - echo "ossrh${{ secrets.OSSRH_USERNAME }}${{ secrets.OSSRH_PASSWORD }}" > $HOME/.m2/settings.xml - - - name: Build and Publish to Local Maven Repository - run: mvn --batch-mode clean install deploy -Dgpg.skip=true -DskipTests=true -DskipNexusStaging=true -DaltDeploymentRepository=local::default::file://$HOME/.m2/repository - - # - name: Publish package - # run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy - # env: - # MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} - # MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} - # GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - # Optional: Verify the artifacts are published in the local repository - - name: Verify Local Publish - run: ls -R $HOME/.m2/repository/com.contentstack.sdk/utils - # publish-github: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v3 - # - name: Set up Java for publishing to GitHub Packages - # uses: actions/setup-java@v3 - # with: - # java-version: '11' - # distribution: 'adopt' - # server-id: github - # gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - # gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} - # - name: Publish to GitHub Packages - # run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + - name: Publish package + run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + publish-github: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Java for publishing to GitHub Packages + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + server-id: github + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} + - name: Publish to GitHub Packages + run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 4c4f8aa954cdadf82d75391f1d393de043a8b23b Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Sun, 8 Sep 2024 13:56:43 +0100 Subject: [PATCH 08/13] fix: trying to publish with original config take 2 --- .github/workflows/maven-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 30e7abd..61aff1c 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -38,6 +38,10 @@ jobs: server-id: github gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} + - name: Set up Maven settings + run: | + mkdir -p $HOME/.m2 + echo "ossrh${{ secrets.OSSRH_USERNAME }}${{ secrets.OSSRH_PASSWORD }}" > $HOME/.m2/settings.xml - name: Publish to GitHub Packages run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy env: From 640feb9c2abe171bc6261053d8b08e277b044232 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Sun, 8 Sep 2024 14:00:21 +0100 Subject: [PATCH 09/13] fix: trying to publish with original config take 3 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8c00e61..7003bc2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.contentstack.sdk utils - 1.2.11 + 1.2.12 jar Contentstack-utils Java Utils SDK for Contentstack Content Delivery API, Contentstack is a headless CMS From 0c5e52c312ba820bb4eae0d2e3819274cb46fbac Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Sun, 8 Sep 2024 14:15:22 +0100 Subject: [PATCH 10/13] fix: trying to publish with original config take 4 --- .github/workflows/maven-publish.yml | 8 ++++---- pom.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 61aff1c..647c53d 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -38,10 +38,10 @@ jobs: server-id: github gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} - - name: Set up Maven settings - run: | - mkdir -p $HOME/.m2 - echo "ossrh${{ secrets.OSSRH_USERNAME }}${{ secrets.OSSRH_PASSWORD }}" > $HOME/.m2/settings.xml + # - name: Set up Maven settings + # run: | + # mkdir -p $HOME/.m2 + # echo "ossrh${{ secrets.OSSRH_USERNAME }}${{ secrets.OSSRH_PASSWORD }}" > $HOME/.m2/settings.xml - name: Publish to GitHub Packages run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy env: diff --git a/pom.xml b/pom.xml index 7003bc2..06b30d4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.contentstack.sdk utils - 1.2.12 + 1.2.13 jar Contentstack-utils Java Utils SDK for Contentstack Content Delivery API, Contentstack is a headless CMS From 56d4aaaf428a2b6cd9a27e6b5ee38c4b2bb24537 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Sun, 8 Sep 2024 15:14:46 +0100 Subject: [PATCH 11/13] fix: trying to publish with original config take 5 --- .github/workflows/maven-publish.yml | 21 +++++++++++++++++---- pom.xml | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 647c53d..2b7754b 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -38,10 +38,23 @@ jobs: server-id: github gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} - # - name: Set up Maven settings - # run: | - # mkdir -p $HOME/.m2 - # echo "ossrh${{ secrets.OSSRH_USERNAME }}${{ secrets.OSSRH_PASSWORD }}" > $HOME/.m2/settings.xml + - name: Set up Maven settings for OSSRH + run: | + mkdir -p $HOME/.m2 + echo " + + + ossrh + ${{ secrets.OSSRH_USERNAME }} + ${{ secrets.OSSRH_PASSWORD }} + + + github + ${{ github.actor }} + ${{ secrets.GITHUB_TOKEN }} + + + " > $HOME/.m2/settings.xml - name: Publish to GitHub Packages run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy env: diff --git a/pom.xml b/pom.xml index 06b30d4..0c6673a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.contentstack.sdk utils - 1.2.13 + 1.2.14 jar Contentstack-utils Java Utils SDK for Contentstack Content Delivery API, Contentstack is a headless CMS From 4ab231439397737014a10e2b7504e46989806661 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Sun, 8 Sep 2024 15:18:17 +0100 Subject: [PATCH 12/13] fix: fixed github workflow issue --- .github/workflows/maven-publish.yml | 4 ++-- pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 2b7754b..add35be 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -1,7 +1,7 @@ name: Publish package to the Maven Central Repository on: - pull_request: - # types: [ created ] + release: + types: [ created ] jobs: publish-maven: runs-on: ubuntu-latest diff --git a/pom.xml b/pom.xml index 0c6673a..10fe008 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.contentstack.sdk utils - 1.2.14 + 1.2.15 jar Contentstack-utils Java Utils SDK for Contentstack Content Delivery API, Contentstack is a headless CMS From e4f8871003e798ea1774b3346389e0e387c968ca Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Mon, 30 Sep 2024 21:59:11 +0100 Subject: [PATCH 13/13] fix: snyk issue --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 10fe008..6997c9a 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ 2.5.3 2.0.1.Final 20240303 - 6.1.6 + 6.1.12 1.12.0