From 043018614d5d3e2aa3beb05c9898e97cf01a9471 Mon Sep 17 00:00:00 2001 From: odeyalo Date: Wed, 1 Oct 2025 17:59:59 +0300 Subject: [PATCH 1/5] Add secrets --- .github/workflows/deploy-common.actions.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy-common.actions.yaml b/.github/workflows/deploy-common.actions.yaml index a6d9ba8..8bad1c1 100644 --- a/.github/workflows/deploy-common.actions.yaml +++ b/.github/workflows/deploy-common.actions.yaml @@ -2,6 +2,10 @@ name: Deploy Suite-Common module only on: workflow_dispatch +env: + GH_USERNAME: ${{ secrets.GH_USERNAME }} + ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} + jobs: deploy: runs-on: ubuntu-latest From 8e34169a2c4dbcb4438ea31a358f44608f60ee41 Mon Sep 17 00:00:00 2001 From: odeyalo Date: Wed, 1 Oct 2025 18:13:37 +0300 Subject: [PATCH 2/5] Add repositories to the publishing --- build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.gradle b/build.gradle index b3ac616..81194e1 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,20 @@ subprojects { apply plugin: 'maven-publish' afterEvaluate { + publishing { + + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/Project-Sonata/Suite") + credentials { + username = System.getenv("GH_USERNAME") + password = System.getenv("ACCESS_TOKEN") + } + } + } + publications { mavenJava(MavenPublication) { from components.java From 9d9271cd1aa7a8e667603aa6940c03bc17cb66ca Mon Sep 17 00:00:00 2001 From: odeyalo Date: Wed, 1 Oct 2025 18:18:32 +0300 Subject: [PATCH 3/5] Add 'reactive' package publishing job --- .github/workflows/deploy-reactive.actions.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/deploy-reactive.actions.yaml diff --git a/.github/workflows/deploy-reactive.actions.yaml b/.github/workflows/deploy-reactive.actions.yaml new file mode 100644 index 0000000..6b0fcbb --- /dev/null +++ b/.github/workflows/deploy-reactive.actions.yaml @@ -0,0 +1,17 @@ +name: Deploy Suite-Common module only + +on: workflow_dispatch + +env: + GH_USERNAME: ${{ secrets.GH_USERNAME }} + ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: "Add permission to gradle" + run: chmod +x gradlew + - name: "Deploy 'reactive' to Github Registry" + run: ./gradlew --build-file=suite-reactive/build.gradle publish From d942de40475c83b194cb4b3e3d1059ddcc4814e3 Mon Sep 17 00:00:00 2001 From: odeyalo Date: Wed, 1 Oct 2025 18:18:37 +0300 Subject: [PATCH 4/5] Add 'brokers' package publishing job --- .github/workflows/deploy-brokers.actions.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/deploy-brokers.actions.yaml diff --git a/.github/workflows/deploy-brokers.actions.yaml b/.github/workflows/deploy-brokers.actions.yaml new file mode 100644 index 0000000..4078f3d --- /dev/null +++ b/.github/workflows/deploy-brokers.actions.yaml @@ -0,0 +1,17 @@ +name: Deploy Suite-Common module only + +on: workflow_dispatch + +env: + GH_USERNAME: ${{ secrets.GH_USERNAME }} + ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: "Add permission to gradle" + run: chmod +x gradlew + - name: "Deploy 'brokers' to Github Registry" + run: ./gradlew --build-file=suite-brokers/build.gradle publish From a893c60039ef8642b3cd7c576fc57d152f662edd Mon Sep 17 00:00:00 2001 From: odeyalo Date: Wed, 1 Oct 2025 18:19:01 +0300 Subject: [PATCH 5/5] Add 'security' package publishing job --- .github/workflows/deploy-security.actions.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/deploy-security.actions.yaml diff --git a/.github/workflows/deploy-security.actions.yaml b/.github/workflows/deploy-security.actions.yaml new file mode 100644 index 0000000..e8a0e87 --- /dev/null +++ b/.github/workflows/deploy-security.actions.yaml @@ -0,0 +1,17 @@ +name: Deploy Suite-Common module only + +on: workflow_dispatch + +env: + GH_USERNAME: ${{ secrets.GH_USERNAME }} + ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: "Add permission to gradle" + run: chmod +x gradlew + - name: "Deploy 'reactive' to Github Registry" + run: ./gradlew --build-file=suite-security/build.gradle publish