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 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 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 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 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