From 0650c99b83597fc4cd9fbd53a9f15dbfce7f04ee Mon Sep 17 00:00:00 2001 From: lnash94 Date: Tue, 18 Jun 2024 11:02:27 +0530 Subject: [PATCH 1/2] Update central push workflow to publish dev and stage central --- .github/workflows/central-publish.yml | 37 ++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/central-publish.yml b/.github/workflows/central-publish.yml index e118e787d..4750aede6 100644 --- a/.github/workflows/central-publish.yml +++ b/.github/workflows/central-publish.yml @@ -2,6 +2,15 @@ name: Publish to the Ballerina central on: workflow_dispatch: + inputs: + environment: + type: choice + description: Select environment + required: true + options: + - CENTRAL + - DEV CENTRAL + - STAGE CENTRAL jobs: publish-release: @@ -16,8 +25,11 @@ jobs: java-version: 17.0.7 - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Publish artifact + - name: Ballerina Central Push + if: ${{ github.event.inputs.environment == 'CENTRAL' }} env: + BALLERINA_DEV_CENTRAL: false + BALLERINA_STAGE_CENTRAL: false BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_ACCESS_TOKEN }} packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} @@ -26,3 +38,26 @@ jobs: nexusPassword: ${{ secrets.NEXUS_PASSWORD }} run: | ./gradlew clean build -PpublishToCentral=true + + - name: Ballerina Central Dev Push + if: ${{ github.event.inputs.environment == 'DEV CENTRAL' }} + env: + BALLERINA_DEV_CENTRAL: true + BALLERINA_STAGE_CENTRAL: false + BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_DEV_ACCESS_TOKEN }} + packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} + GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }} + run: | + ./gradlew clean build -PpublishToCentral=true + - name: Ballerina Central Stage Push + if: ${{ github.event.inputs.environment == 'STAGE CENTRAL' }} + env: + BALLERINA_DEV_CENTRAL: false + BALLERINA_STAGE_CENTRAL: true + BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BALLERINA_CENTRAL_STAGE_ACCESS_TOKEN }} + packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} + GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }} + run: | + ./gradlew clean build -PpublishToCentral=true From 3a507b986c4bb8847155be213ac422ece3594eb1 Mon Sep 17 00:00:00 2001 From: lnash94 Date: Tue, 18 Jun 2024 11:21:12 +0530 Subject: [PATCH 2/2] Update openapi and ballerina lang version --- gradle.properties | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 519c0e2e5..7c67ac67c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ org.gradle.caching=true group=io.ballerina -version=2.0.1-SNAPSHOT +version=2.1.0-SNAPSHOT # Client Native Version clientNativeVersion=1.0.1-SNAPSHOT @@ -8,7 +8,7 @@ clientNativeVersion=1.0.1-SNAPSHOT clientNativePublish=false #dependency -ballerinaLangVersion=2201.9.0 +ballerinaLangVersion=2201.9.1 testngVersion=7.6.1 slf4jVersion=1.7.30 org.gradle.jvmargs=-Xmx4096M -Dfile.encoding=UTF-8 @@ -46,8 +46,7 @@ stdlibJwtVersion=2.11.0 stdlibOAuth2Version=2.11.0 # Stdlib Level 05 -stdlibHttpVersion=2.11.1-20240527-111400-f6148d4 - +stdlibHttpVersion= 2.11.3-20240618-115300-a7af03c # Stdlib Level 06 stdlibGrpcVersion=1.11.0 stdlibWebsocketVersion=2.11.0