Skip to content

fix: prevent removed instances from reappearing and fix cross-server … #7

fix: prevent removed instances from reappearing and fix cross-server …

fix: prevent removed instances from reappearing and fix cross-server … #7

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
permissions:
contents: write
jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install XcodeGen
run: brew install xcodegen
- name: Stamp version from tag
run: |
VERSION="${GITHUB_REF_NAME#v}"
echo "Stamping version: $VERSION"
plutil -replace CFBundleShortVersionString -string "$VERSION" MdemgMenuBar/Info.plist
plutil -replace CFBundleVersion -string "$VERSION" MdemgMenuBar/Info.plist
- name: Generate Xcode Project
run: xcodegen generate
- name: Build Release
run: |
xcodebuild build \
-scheme MdemgMenuBar \
-configuration Release \
-derivedDataPath build/DerivedData \
CODE_SIGN_IDENTITY="-"
- name: Package App
run: |
APP_PATH=$(find build/DerivedData -name "MdemgMenuBar.app" -type d | head -1)
if [ -z "$APP_PATH" ]; then
echo "Error: MdemgMenuBar.app not found in DerivedData"
exit 1
fi
echo "Found app at: $APP_PATH"
ditto -c -k --keepParent "$APP_PATH" MdemgMenuBar.app.zip
- name: Create Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref_name }}" \
--title "MDEMG Menu Bar ${{ github.ref_name }}" \
--generate-notes \
MdemgMenuBar.app.zip