Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions .github/maven-publish-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,59 +323,6 @@ prepare_maven_structure() {
echo "${MAVEN_LOCAL_PATH}"
}

# Main function for grammar files publishing workflow
publish_grammar_files() {
local version="$1"
local commit_id="$2"

echo "Starting grammar files publishing workflow"

# Define constants
ARTIFACT_ID="language-grammar"
GROUP_ID="org.opensearch"

# Package grammar files
echo "Packaging grammar files..."
mkdir -p grammar_files
find ./language-grammar/src/main/antlr4 -name "*.g4" -type f -exec cp {} grammar_files/ \;

echo "Files to be included in the zip:"
ls -la grammar_files/

cd grammar_files
zip -r ../grammar.zip ./*
cd ..

ls -la grammar.zip

# Prepare for Maven publishing
echo "Preparing for Maven publishing..."
MAVEN_LOCAL_PATH=$(prepare_maven_structure "$GROUP_ID" "$ARTIFACT_ID" "$version")

# Copy the zip file to Maven directory with proper naming
MAVEN_ZIP_NAME="${ARTIFACT_ID}-${version}.zip"
cp grammar.zip "${MAVEN_LOCAL_PATH}/${MAVEN_ZIP_NAME}"

# Generate POM file
create_pom_file "$GROUP_ID" "$ARTIFACT_ID" "$version" "zip" "OpenSearch Language Grammar Files" "${MAVEN_LOCAL_PATH}/${ARTIFACT_ID}-${version}.pom"

echo "Grammar files prepared for Maven publishing as version ${version}"

# Generate checksums
generate_checksums

# Publish to Maven
publish_to_maven

# Update metadata with commit ID
update_version_metadata "$ARTIFACT_ID" "$version" "$commit_id"

# Update commit mapping
update_commit_mapping "$commit_id" "$version" "$ARTIFACT_ID" "zip"

echo "Grammar files publishing workflow completed"
}

# Main function for async-query-core publishing workflow
publish_async_query_core() {
local version="$1"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-async-query-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- main
- '[0-9]+.[0-9]+'
- '[0-9]+.x'
- '[0-9]+.[0-9]+-dev'
paths:
- 'async-query-core/**'
- '.github/workflows/publish-async-query-core.yml'
Expand Down
85 changes: 0 additions & 85 deletions .github/workflows/publish-grammar-files.yml

This file was deleted.

Loading