Skip to content

Commit 37d2d64

Browse files
authored
fix snapshot uploading (#4006)
* fix snapshot uploading Signed-off-by: Kai Huang <ahkcs@amazon.com> * Add comment Signed-off-by: Kai Huang <ahkcs@amazon.com> --------- Signed-off-by: Kai Huang <ahkcs@amazon.com>
1 parent d6aac3c commit 37d2d64

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/maven-publish-utils.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@ generate_checksums() {
9191
publish_to_maven() {
9292
echo "Publishing artifacts to Maven repository..."
9393

94-
# Navigate to build directory and copy artifacts
94+
# Make a temp directory for publish-snapshot.sh
95+
mkdir -p build/resources/publish/
96+
cp build/publish/publish-snapshot.sh build/resources/publish/
97+
chmod +x build/resources/publish/publish-snapshot.sh
98+
99+
# Continue with the original flow
95100
cd build/resources/publish/
96101
cp -a $HOME/.m2/repository/* ./
97-
98-
# Run the publish script
99102
./publish-snapshot.sh ./
100103

101104
echo "Maven publishing completed"

.github/workflows/publish-async-query-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
7272
- uses: actions/checkout@v4
7373
with:
74-
repository: 'opensearch-project/opensearch-build-libraries'
74+
repository: 'opensearch-project/opensearch-build'
7575
path: 'build'
7676

7777
- name: Install required tools

.github/workflows/publish-grammar-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
7171
- uses: actions/checkout@v4
7272
with:
73-
repository: 'opensearch-project/opensearch-build-libraries'
73+
repository: 'opensearch-project/opensearch-build'
7474
path: 'build'
7575

7676
- name: Install required tools

0 commit comments

Comments
 (0)