From 92bdad816ba68a925fad142473ef1313494247b1 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Thu, 22 Jun 2023 12:26:26 -0700 Subject: [PATCH] Rename artifacts. Signed-off-by: Yury-Fridlyand --- .github/workflows/release-drafter.yml | 7 +++++-- jenkins/release.jenkinsFile | 10 +++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 2b701ed..b71342a 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -18,8 +18,11 @@ jobs: commit: ${{github.sha}} workflow_conclusion: success - - name: Pack artifacts - run: tar -cvf artifacts.tar.gz *-installer + - name: Rename and pack artifacts + run: | + # replace spaces by dashes in file names + for i in *-installer/*; do mv "$i" "${i//\ /-}"; done + tar -cvf artifacts.tar.gz *-installer - name: Draft a release uses: softprops/action-gh-release@v1 diff --git a/jenkins/release.jenkinsFile b/jenkins/release.jenkinsFile index 0ecb990..6d68eaf 100644 --- a/jenkins/release.jenkinsFile +++ b/jenkins/release.jenkinsFile @@ -10,23 +10,23 @@ standardReleasePipelineWithGenericTrigger( publishRelease: true) { publishToArtifactsProdBucket( assumedRoleName: 'sql-odbc-upload-role', - source: 'opensearch-sql-odbc-driver-32-bit-1.5.0.0-Windows.msi', + source: 'windows32-installer/OpenSearch-SQL-ODBC-Driver-32-bit-1.5.0.0-Windows.msi', destination: 'opensearch-clients/odbc/opensearch-sql-odbc-driver-32-bit-1.5.0.0-Windows.msi', signingPlatform: 'windows', sigType: 'null', sigOverwrite: true ) - publishToArtifactsProdBucket( + publishToArtifactsProdBucket( assumedRoleName: 'sql-odbc-upload-role', - source: 'opensearch-sql-odbc-driver-64-bit-1.5.0.0-Windows.msi', + source: 'windows64-installer/OpenSearch-SQL-ODBC-Driver-64-bit-1.5.0.0-Windows.msi', destination: 'opensearch-clients/odbc/opensearch-sql-odbc-driver-64-bit-1.5.0.0-Windows.msi', signingPlatform: 'windows', sigType: 'null', sigOverwrite: true ) - publishToArtifactsProdBucket( + publishToArtifactsProdBucket( assumedRoleName: 'sql-odbc-upload-role', - source: 'opensearch-sql-odbc-driver-64-bit-1.5.0.0-Darwin.pkg, + source: 'mac64-installer/OpenSearch-SQL-ODBC-Driver-64-bit-1.5.0.0-Darwin.pkg', destination: 'opensearch-clients/odbc/opensearch-sql-odbc-driver-64-bit-1.5.0.0-Darwin.pkg', signingPlatform: 'macos', sigType: 'null',