Skip to content

Commit fd9bb0f

Browse files
committed
Enhance release workflow to support versioned and latest package creation
- Added commands to create both versioned and latest packages for stable download links. - Updated artifact upload step to include latest package files. - Enhanced documentation with stable download links for macOS, Windows, and Linux.
1 parent 80876bf commit fd9bb0f

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ jobs:
9292
mkdir -p assets/icons
9393
cp ../assets/icons/icon.svg assets/icons/
9494
fi
95+
# Create versioned package
9596
${{ matrix.package_cmd }}
97+
# Create latest package for stable links
98+
LATEST_CMD="${{ matrix.package_cmd }}"
99+
LATEST_CMD=$(echo "$LATEST_CMD" | sed 's/${{ github.ref_name }}/latest/g')
100+
eval "$LATEST_CMD"
96101
97102
- name: Package artifacts (Windows)
98103
if: runner.os == 'Windows'
@@ -103,12 +108,18 @@ jobs:
103108
New-Item -ItemType Directory -Force -Path assets/icons
104109
Copy-Item ../assets/icons/icon.svg assets/icons/
105110
}
111+
# Create versioned package
106112
${{ matrix.package_cmd }}
113+
# Create latest package for stable links
114+
$latestCmd = "${{ matrix.package_cmd }}" -replace "${{ github.ref_name }}", "latest"
115+
Invoke-Expression $latestCmd
107116
108117
- name: Upload artifacts to release
109118
uses: softprops/action-gh-release@v2
110119
with:
111-
files: build/mcpproxy-*
120+
files: |
121+
build/mcpproxy-${{ github.ref_name }}-*
122+
build/mcpproxy-latest-*
112123
draft: false
113124
prerelease: false
114125
generate_release_notes: true
@@ -129,6 +140,12 @@ jobs:
129140
2. Extract the binary
130141
3. Run `mcpproxy` to start with system tray, or `mcpproxy --tray=false` for headless mode
131142
143+
#### Stable Download Links (Always Latest)
144+
For scripts and websites that need stable URLs:
145+
- **macOS**: `https://github.com/smart-mcp-proxy/mcpproxy-go/releases/latest/download/mcpproxy-latest-macos-universal.zip`
146+
- **Windows**: `https://github.com/smart-mcp-proxy/mcpproxy-go/releases/latest/download/mcpproxy-latest-windows-amd64.zip`
147+
- **Linux**: `https://github.com/smart-mcp-proxy/mcpproxy-go/releases/latest/download/mcpproxy-latest-linux-amd64.tar.gz`
148+
132149
#### macOS
133150
- Download `mcpproxy-*-macos-universal.zip`
134151
- Right-click → Open to bypass Gatekeeper (unsigned app)

0 commit comments

Comments
 (0)