diff --git a/.github/workflows/transports-release.yml b/.github/workflows/transports-release.yml index d64583a840..feadb73f48 100644 --- a/.github/workflows/transports-release.yml +++ b/.github/workflows/transports-release.yml @@ -106,17 +106,21 @@ jobs: # Determine versions and create transport tag - name: Create transport tag id: manage_versions - working-directory: . run: | # Get current core version from go.mod and generate new transport version node ci/scripts/manage-versions.mjs transport-release >> "$GITHUB_OUTPUT" - # Get the transport version for tagging + # Store the transport version in a shell variable TRANSPORT_VERSION=$(grep "transport_version=" "$GITHUB_OUTPUT" | cut -d'=' -f2) + + # Echo for logging echo "📦 Creating transport tag: ${TRANSPORT_VERSION}" - # Create and push transport tag - node ci/scripts/git-operations.mjs create-tag "${TRANSPORT_VERSION}" + # Export the variable so it's available after cd + export TRANSPORT_VERSION + + # Create and push transport tag from scripts directory + cd ci/scripts && node git-operations.mjs create-tag "$TRANSPORT_VERSION" # Build the UI from the current repo state - name: Build UI static files @@ -127,15 +131,14 @@ jobs: # Cross-compile Go binaries for multiple platforms - name: Build Go executables - working-directory: . run: | echo "🔨 Building Go executables..." chmod +x ci/scripts/go-executable-build.sh + # go-executable-build.sh called from root, expects paths relative to root 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: . env: # R2 (Cloudflare S3-compatible storage) credentials R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }} @@ -145,6 +148,7 @@ 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} + # upload-builds.mjs must run from root to find ./dist directory node ci/scripts/upload-builds.mjs v${VERSION_ONLY} # Second job: Build and push Docker image