Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix archive creation

Rahul Tarak0189d2d2507e
diff --git a/.github/workflows/build-cli-binaries.yml b/.github/workflows/build-cli-binaries.yml
index e7c0c1ac8..fbff49a1e 100644
--- a/.github/workflows/build-cli-binaries.yml
+++ b/.github/workflows/build-cli-binaries.yml
@@ -88,11 +88,13 @@ jobs:
working-directory: ts/packages/cli/dist/binaries
run: |
# Create subdirectory structure expected by install script
- rm -rf ${{ matrix.artifact }}
- mkdir -p ${{ matrix.artifact }}
- cp ${{ matrix.artifact }} ${{ matrix.artifact }}/composio
- zip -r ${{ matrix.artifact }}.zip ${{ matrix.artifact }}
- rm -r ${{ matrix.artifact }}
+ # Use a temp directory name to avoid name collision with the binary file
+ temp_dir="archive-${{ matrix.artifact }}"
+ rm -rf "$temp_dir"
+ mkdir -p "$temp_dir/${{ matrix.artifact }}"
+ cp "${{ matrix.artifact }}" "$temp_dir/${{ matrix.artifact }}/composio"
+ cd "$temp_dir" && zip -r "../${{ matrix.artifact }}.zip" "${{ matrix.artifact }}"
+ cd .. && rm -r "$temp_dir"
ls -la
- name: Upload binary artifact