From e0227fc40cd6a32e5f20c568b12d826869ccbc27 Mon Sep 17 00:00:00 2001 From: MohamedSabthar Date: Tue, 27 Jun 2023 17:04:06 +0530 Subject: [PATCH] Update central publish workflow --- .github/workflows/central-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/central-publish.yml b/.github/workflows/central-publish.yml index 25932eff6..a3434c3e5 100644 --- a/.github/workflows/central-publish.yml +++ b/.github/workflows/central-publish.yml @@ -60,6 +60,7 @@ jobs: packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | + sed -i 's/version=\(.*\)-SNAPSHOT/version=\1/g' gradle.properties ./gradlew clean build -PpublishToCentral=true - name: Ballerina Central Stage Push if: ${{ github.event.inputs.environment == 'STAGE CENTRAL' }} @@ -71,4 +72,5 @@ jobs: packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} GITHUB_TOKEN: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | + sed -i 's/version=\(.*\)-SNAPSHOT/version=\1/g' gradle.properties ./gradlew clean build -PpublishToCentral=true