diff --git a/.github/workflows/counting-handler-release.yml b/.github/workflows/counting-handler-release.yml new file mode 100644 index 0000000..54600d7 --- /dev/null +++ b/.github/workflows/counting-handler-release.yml @@ -0,0 +1,23 @@ +name: Release Transaction Counting Handler +on: + workflow_dispatch: +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - name: Checkout code + uses: actions/checkout@v4 + - name: Build with Maven + working-directory: ./counter + run: mvn package --file pom.xml + - name: Release Maven package + uses: samuelmeuli/action-maven-publish@v1 + with: + directory: ./counter + nexus_username: ${{ secrets.NEXUS_USERNAME }} + nexus_password: ${{ secrets.NEXUS_PASSWORD }} diff --git a/pom.xml b/pom.xml index f1e4c11..d6cf69c 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.wso2.integration.transaction.counter transaction-counter pom - 0.1.0-SNAPSHOT + 0.1.0 WSO2 Integration Transaction Counter diff --git a/service/Ballerina.toml b/service/Ballerina.toml index 8e76c41..c4746bf 100644 --- a/service/Ballerina.toml +++ b/service/Ballerina.toml @@ -1,7 +1,7 @@ [package] org = "wso2" name = "TransactionCountingService" -version = "0.1.0-SNAPSHOT" +version = "0.1.0" distribution = "2201.7.0" [build-options] diff --git a/service/pom.xml b/service/pom.xml index c56aa6e..206f764 100644 --- a/service/pom.xml +++ b/service/pom.xml @@ -21,7 +21,7 @@ org.wso2.integration.transaction.counter transaction-counter - 0.1.0-SNAPSHOT + 0.1.0 transaction-count-service