From 80ae5ca394899e05a2f4b4011c8eae41a718d6ae Mon Sep 17 00:00:00 2001 From: BushraS-Protean Date: Tue, 20 May 2025 15:53:29 +0530 Subject: [PATCH] Update build-and-deploy-plugins.yml --- .github/workflows/build-and-deploy-plugins.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy-plugins.yml b/.github/workflows/build-and-deploy-plugins.yml index 44368b3..4577020 100644 --- a/.github/workflows/build-and-deploy-plugins.yml +++ b/.github/workflows/build-and-deploy-plugins.yml @@ -46,11 +46,11 @@ jobs: mkdir -p $PLUGIN_OUTPUT_DIR BUILD_CMDS="" - # GitHub Plugins (confirmed path: github-repo/pkg/plugin/implementation/*/cmd) + # GitHub Plugins for dir in github-repo/pkg/plugin/implementation/*; do if [ -d "$dir/cmd" ]; then plugin=$(basename "$dir") - BUILD_CMDS+="go build -buildmode=plugin -buildvcs=false -o ${PLUGIN_OUTPUT_DIR}/${plugin}.so ./${dir}/cmd && " + BUILD_CMDS+="cd github-repo && go build -buildmode=plugin -buildvcs=false -o ../${PLUGIN_OUTPUT_DIR}/${plugin}.so ./pkg/plugin/implementation/${plugin}/cmd && cd - && " fi done