Skip to content
Merged
Show file tree
Hide file tree
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
21 changes: 14 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
outputs:
releases_created: ${{ steps.release-plz.outputs.releases_created }}
version: ${{ steps.get-version.outputs.version }}
tag: ${{ steps.get-version.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -62,14 +63,19 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Extract version from tag
- name: Extract version from releases output
id: get-version
if: steps.release-plz.outputs.releases_created == 'true'
env:
RELEASES: ${{ steps.release-plz.outputs.releases }}
run: |
TAG="${{ steps.release-plz.outputs.tag }}"
VERSION="${TAG#v}"
# Parse the releases JSON to get tag and version
# Example: [{"package_name":"mcpmux","tag":"v0.1.0","version":"0.1.0"}]
TAG=$(echo "$RELEASES" | jq -r '.[0].tag')
VERSION=$(echo "$RELEASES" | jq -r '.[0].version')
echo "tag=$TAG" >> $GITHUB_OUTPUT
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Released version: $VERSION"
echo "Released tag: $TAG, version: $VERSION"

# ─────────────────────────────────────────────────────────────
# Build Release: Build Tauri app when release is created
Expand All @@ -90,7 +96,7 @@ jobs:
- os: macos-latest
target: aarch64-apple-darwin
artifact: macos-arm
- os: macos-13
- os: macos-15
target: x86_64-apple-darwin
artifact: macos-intel

Expand Down Expand Up @@ -128,7 +134,7 @@ jobs:

# Import Apple certificate for macOS signing
- name: Import Apple certificate
if: matrix.os == 'macos-latest' || matrix.os == 'macos-13'
if: matrix.os == 'macos-latest' || matrix.os == 'macos-15'
env:
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
Expand Down Expand Up @@ -160,7 +166,8 @@ jobs:
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
with:
tagName: v${{ needs.release.outputs.version }}
# Use tagName to find and upload to the existing release created by release-plz
tagName: ${{ needs.release.outputs.tag }}
releaseName: 'McpMux v${{ needs.release.outputs.version }}'
releaseBody: '' # Release notes already created by release-plz
releaseDraft: false
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"scripts": {
"setup": "pwsh -ExecutionPolicy Bypass -File scripts/setup-dev.ps1",
"dev": "pnpm --filter @mcpmux/desktop dev",
"dev:web": "pnpm --filter @mcpmux/desktop dev:web",
"build": "pnpm --filter @mcpmux/desktop build",
"build:web": "pnpm --filter @mcpmux/desktop build:web",
"release:key": "pnpm --filter @mcpmux/desktop tauri signer generate -w ~/.tauri/mcpmux.key",
"test": "pnpm test:rust && pnpm test:ts",
"test:rust": "cargo nextest run --workspace",
Expand Down
Loading