Skip to content
Merged
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
16 changes: 10 additions & 6 deletions .github/workflows/transports-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Comment thread
Pratham-Mishra04 marked this conversation as resolved.
# Build the UI from the current repo state
- name: Build UI static files
Expand All @@ -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 }}
Expand All @@ -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
Expand Down