From ac2a4932137683c29b3a636fcd17f495a96b87a2 Mon Sep 17 00:00:00 2001 From: mschaab <53225534+mschaab-SA@users.noreply.github.com> Date: Wed, 27 Dec 2023 15:46:27 -0300 Subject: [PATCH] Update github-actions.yml --- .github/workflows/github-actions.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 5c8dba9..04a87b0 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -35,4 +35,17 @@ jobs: JF_USER: ${{ secrets.JFROG_USERNAME }} JF_PASSWORD: ${{ secrets.JFROG_PASSWORD }} - run: | - jf rt ping + # This command adds a new server configuration to the JFrog CLI + - name: Create version for Artifactory + run: | + export BUILD_NAME="saidp-sdk-java" + export BUILD_MODULE="sdk-java" + export BUILD_NUMBER="1" + + export VERSION="1.0.3.5" + + jf rt upload "./build/libs/saRestApi-*.jar" radius-release-local/saRestApi/$PATH_TO_DIRECTORY --build-name $BUILD_NAME --build-number $BUILD_NUMBER --module $BUILD_MODULE + # This action publishes the build information to Artifactory and deletes older builds + - name: Build to Artifactory + run: | + jf rt build-publish $BUILD_NAME $BUILD_NUMBER