Skip to content

Commit

Permalink
Add a workflow for handler release
Browse files Browse the repository at this point in the history
  • Loading branch information
IsuruMaduranga committed Nov 30, 2023
1 parent a8bc409 commit de53a16
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/counting-handler-release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<groupId>org.wso2.integration.transaction.counter</groupId>
<artifactId>transaction-counter</artifactId>
<packaging>pom</packaging>
<version>0.1.0-SNAPSHOT</version>
<version>0.1.0</version>
<name>WSO2 Integration Transaction Counter</name>

<modules>
Expand Down
2 changes: 1 addition & 1 deletion service/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "wso2"
name = "TransactionCountingService"
version = "0.1.0-SNAPSHOT"
version = "0.1.0"
distribution = "2201.7.0"

[build-options]
Expand Down
2 changes: 1 addition & 1 deletion service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.wso2.integration.transaction.counter</groupId>
<artifactId>transaction-counter</artifactId>
<version>0.1.0-SNAPSHOT</version>
<version>0.1.0</version>
</parent>

<artifactId>transaction-count-service</artifactId>
Expand Down

0 comments on commit de53a16

Please sign in to comment.