Skip to content

Commit fb513f8

Browse files
committed
Refactor GitHub Actions workflow for mcpproxy release process
- Removed individual binary build steps and streamlined archive creation for versioned and latest releases. - Updated upload artifact names for clarity and consistency in versioning. - Enhanced documentation for download links and installation instructions, focusing on archive usage.
1 parent affc74b commit fb513f8

1 file changed

Lines changed: 9 additions & 44 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ jobs:
7777
CLEAN_BINARY="mcpproxy"
7878
fi
7979
80-
# Build binary with original name for individual download
81-
go build -ldflags "${LDFLAGS}" -o ${{ matrix.name }} ./cmd/mcpproxy
82-
8380
# Create clean binary for archive
8481
go build -ldflags "${LDFLAGS}" -o ${CLEAN_BINARY} ./cmd/mcpproxy
8582
@@ -99,27 +96,17 @@ jobs:
9996
tar -czf "${LATEST_ARCHIVE_BASE}.tar.gz" ${CLEAN_BINARY}
10097
fi
10198
102-
# Create latest binary (copy of the versioned one)
103-
LATEST_NAME=$(echo "${{ matrix.name }}" | sed 's/-[^-]*-/-latest-/')
104-
cp ${{ matrix.name }} ${LATEST_NAME}
105-
106-
- name: Upload versioned binary artifact
107-
uses: actions/upload-artifact@v4
108-
with:
109-
name: binary-${{ matrix.name }}
110-
path: ${{ matrix.name }}
111-
112-
- name: Upload latest binary artifact
99+
- name: Upload versioned archive artifact
113100
uses: actions/upload-artifact@v4
114101
with:
115-
name: binary-${{ matrix.name }}-latest
116-
path: mcpproxy-latest-*
102+
name: archive-versioned-${{ matrix.goos }}-${{ matrix.goarch }}
103+
path: mcpproxy-*-${{ matrix.goos }}-${{ matrix.goarch }}.${{ matrix.archive_format }}
117104

118-
- name: Upload versioned archive artifact
105+
- name: Upload latest archive artifact
119106
uses: actions/upload-artifact@v4
120107
with:
121-
name: archive-${{ matrix.goos }}-${{ matrix.goarch }}
122-
path: mcpproxy-*.${{ matrix.archive_format }}
108+
name: archive-latest-${{ matrix.goos }}-${{ matrix.goarch }}
109+
path: mcpproxy-latest-${{ matrix.goos }}-${{ matrix.goarch }}.${{ matrix.archive_format }}
123110

124111
release:
125112
needs: build
@@ -151,49 +138,27 @@ jobs:
151138
152139
Smart MCP Proxy - Intelligent tool discovery and proxying for Model Context Protocol servers.
153140
154-
### Quick Download Links
155-
156-
**Archives (Recommended - Clean Binary Names):**
141+
### Download Links
157142
158-
*Latest Version (auto-updates):*
143+
**Latest Version (auto-updates):**
159144
- [Linux AMD64](https://github.com/${{ github.repository }}/releases/latest/download/mcpproxy-latest-linux-amd64.tar.gz)
160145
- [Windows AMD64](https://github.com/${{ github.repository }}/releases/latest/download/mcpproxy-latest-windows-amd64.zip)
161146
- [macOS AMD64](https://github.com/${{ github.repository }}/releases/latest/download/mcpproxy-latest-darwin-amd64.tar.gz)
162147
- [macOS ARM64](https://github.com/${{ github.repository }}/releases/latest/download/mcpproxy-latest-darwin-arm64.tar.gz)
163148
164-
*This Version (${{ github.ref_name }}):*
149+
**This Version (${{ github.ref_name }}):**
165150
- [Linux AMD64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/mcpproxy-${{ github.ref_name }}-linux-amd64.tar.gz)
166151
- [Windows AMD64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/mcpproxy-${{ github.ref_name }}-windows-amd64.zip)
167152
- [macOS AMD64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/mcpproxy-${{ github.ref_name }}-darwin-amd64.tar.gz)
168153
- [macOS ARM64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/mcpproxy-${{ github.ref_name }}-darwin-arm64.tar.gz)
169154
170-
**Individual Binaries:**
171-
172-
*Latest Version (auto-updates):*
173-
- [Linux AMD64](https://github.com/${{ github.repository }}/releases/latest/download/mcpproxy-latest-linux-amd64)
174-
- [Windows AMD64](https://github.com/${{ github.repository }}/releases/latest/download/mcpproxy-latest-windows-amd64.exe)
175-
- [macOS AMD64](https://github.com/${{ github.repository }}/releases/latest/download/mcpproxy-latest-darwin-amd64)
176-
- [macOS ARM64](https://github.com/${{ github.repository }}/releases/latest/download/mcpproxy-latest-darwin-arm64)
177-
178-
*This Version (${{ github.ref_name }}):*
179-
- [Linux AMD64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/mcpproxy-linux-amd64)
180-
- [Windows AMD64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/mcpproxy-windows-amd64.exe)
181-
- [macOS AMD64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/mcpproxy-darwin-amd64)
182-
- [macOS ARM64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/mcpproxy-darwin-arm64)
183-
184155
### Installation
185156
186-
**From Archive (Recommended):**
187157
1. Download the appropriate archive for your platform using the links above
188158
2. Extract the archive: `tar -xzf mcpproxy-*.tar.gz` (Linux/macOS) or unzip (Windows)
189159
3. Make it executable: `chmod +x mcpproxy` (Linux/macOS)
190160
4. Run `./mcpproxy` to start
191161
192-
**From Individual Binary:**
193-
1. Download the appropriate binary for your platform using the links above
194-
2. Make it executable: `chmod +x mcpproxy-*` (Linux/macOS)
195-
3. Run `./mcpproxy-*` to start
196-
197162
### Platform Support
198163
199164
- **macOS**: Full system tray support with menu and icons

0 commit comments

Comments
 (0)