From cc0671da4a2de148caab0c0fb32012c6eb7c877b Mon Sep 17 00:00:00 2001 From: Pratham Mishra <99235987+Pratham-Mishra04@users.noreply.github.com> Date: Wed, 23 Jul 2025 01:02:39 +0530 Subject: [PATCH] fix: transport release ci fixes --- .github/workflows/transports-release.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/transports-release.yml b/.github/workflows/transports-release.yml index 5f095109da..ed2e97895e 100644 --- a/.github/workflows/transports-release.yml +++ b/.github/workflows/transports-release.yml @@ -88,17 +88,17 @@ jobs: # Determine versions and create transport tag - name: Create transport tag id: manage_versions - working-directory: ci/scripts + working-directory: . run: | # Get current core version from go.mod and generate new transport version - node manage-versions.mjs transport-release >> "$GITHUB_OUTPUT" + node ci/scripts/manage-versions.mjs transport-release >> "$GITHUB_OUTPUT" # Get the transport version for tagging TRANSPORT_VERSION=$(grep "transport_version=" "$GITHUB_OUTPUT" | cut -d'=' -f2) echo "📦 Creating transport tag: ${TRANSPORT_VERSION}" # Create and push transport tag - node git-operations.mjs create-tag "${TRANSPORT_VERSION}" + node ci/scripts/git-operations.mjs create-tag "${TRANSPORT_VERSION}" # Build the UI from the current repo state - name: Build UI static files @@ -109,15 +109,15 @@ jobs: # Cross-compile Go binaries for multiple platforms - name: Build Go executables - working-directory: transports + working-directory: . run: | echo "🔨 Building Go executables..." - chmod +x ../ci/scripts/go-executable-build.sh - ../ci/scripts/go-executable-build.sh bifrost-http ../dist ./bifrost-http "$(pwd)" + chmod +x ci/scripts/go-executable-build.sh + ci/scripts/go-executable-build.sh bifrost-http ./dist ./bifrost-http "$(pwd)/transports" # Upload the built binaries to S3 for distribution - name: Upload builds to S3 - working-directory: ci/scripts + working-directory: . env: # R2 (Cloudflare S3-compatible storage) credentials R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }} @@ -127,7 +127,6 @@ jobs: # Strip 'transports/' prefix and add 'v' prefix for upload script VERSION_ONLY="${{ steps.manage_versions.outputs.transport_version }}" VERSION_ONLY=${VERSION_ONLY#transports/v} - cd ../.. node ci/scripts/upload-builds.mjs v${VERSION_ONLY} # Second job: Build and push Docker image