Skip to content

Commit 8f1d57d

Browse files
committed
only release binary
1 parent 20320a8 commit 8f1d57d

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,20 @@ jobs:
6262
target: ${{ matrix.platform.target }}
6363
args: "--locked --release"
6464
strip: true
65-
- name: Publish artifacts and release
66-
uses: houseabsolute/actions-rust-release@48ce35fb40c3dab00791a3d6c485022341354c44
65+
- name: Create archive (Unix)
66+
if: matrix.platform.os-name != 'Windows-x86_64'
67+
run: tar -czvf mcp-proxy-${{ matrix.platform.target }}.tar.gz -C target/*/release mcp-proxy
68+
- name: Create archive (Windows)
69+
if: matrix.platform.os-name == 'Windows-x86_64'
70+
working-directory: target\\${{ matrix.platform.target }}\\release
71+
run: 7z a ..\\..\\..\\mcp-proxy-${{ matrix.platform.target }}.zip mcp-proxy.exe
72+
- name: Upload artifacts
73+
uses: actions/upload-artifact@v4
6774
with:
68-
executable-name: mcp-proxy
69-
extra-files: ''
70-
changes-file: ''
71-
target: ${{ matrix.platform.target }}
75+
name: mcp-proxy-${{ matrix.platform.target }}
76+
path: mcp-proxy-${{ matrix.platform.target }}.*
77+
- name: Release
78+
uses: softprops/action-gh-release@39ba0b9d81217c984acfad95ddcc7db226387497
79+
if: github.ref_type == 'tag'
80+
with:
81+
files: 'mcp-proxy-${{ matrix.platform.target }}.*'

0 commit comments

Comments
 (0)