From 8b44db371430769c8ade6a718856a20bee9b2d38 Mon Sep 17 00:00:00 2001 From: Ori Bruk Date: Mon, 10 Mar 2025 13:42:11 +0300 Subject: [PATCH 1/2] [#49] Provide auto deploy after merge Signed-off-by: Ori Bruk --- pom.xml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 01abab2..978fea2 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ - 0.9.0 + 0.10.0 11 11 @@ -160,4 +160,20 @@ - \ No newline at end of file + + + TrueCloudLab + https://git.frostfs.info/api/packages/TrueCloudLab/maven + + + + + TrueCloudLab + https://git.frostfs.info/api/packages/TrueCloudLab/maven + + + TrueCloudLab + https://git.frostfs.info/api/packages/TrueCloudLab/maven + + + -- 2.45.3 From c2d70c4f3e9bd417fffdd827100c9350dffc0caf Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Mon, 10 Mar 2025 14:30:39 +0300 Subject: [PATCH 2/2] [#49] ci: Publish SDK packages to our Maven registry Signed-off-by: Vitaliy Potyarkin --- .forgejo/workflows/publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .forgejo/workflows/publish.yml diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml new file mode 100644 index 0000000..7c067ca --- /dev/null +++ b/.forgejo/workflows/publish.yml @@ -0,0 +1,22 @@ +on: + push: + workflow_dispatch: + +jobs: + image: + name: Publish Maven packages + runs-on: docker + container: git.frostfs.info/truecloudlab/env:openjdk-11-maven-3.8.6 + steps: + - name: Clone git repo + uses: actions/checkout@v3 + + - name: Publish release packages + run: mvn clean --batch-mode --update-snapshots deploy + if: >- + startsWith(github.ref, 'refs/tags/v') && + (github.event_name == 'workflow_dispatch' || github.event_name == 'push') + env: + MAVEN_REGISTRY: TrueCloudLab + MAVEN_REGISTRY_USER: ${{secrets.MAVEN_REGISTRY_USER}} + MAVEN_REGISTRY_PASSWORD: ${{secrets.MAVEN_REGISTRY_PASSWORD}} -- 2.45.3