Skip to content

docs(readme): fix Homebrew cask name to lowercase #1

docs(readme): fix Homebrew cask name to lowercase

docs(readme): fix Homebrew cask name to lowercase #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install XcodeGen
run: brew install xcodegen
- name: Generate Xcode project
run: xcodegen generate
- name: Build Release
run: |
xcodebuild \
-scheme FrameworkScanner \
-configuration Release \
-derivedDataPath build \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=YES \
AD_HOC_CODE_SIGNING_ALLOWED=YES \
ONLY_ACTIVE_ARCH=NO \
clean build
- name: Locate .app
id: locate
run: |
APP_PATH=$(find build/Build/Products/Release -name "FrameworkScanner.app" -maxdepth 1)
echo "app_path=$APP_PATH" >> $GITHUB_OUTPUT
- name: Create DMG
run: |
VERSION="${GITHUB_REF_NAME#v}"
hdiutil create \
-volname "FrameworkScanner" \
-srcfolder "${{ steps.locate.outputs.app_path }}" \
-ov -format UDZO \
"FrameworkScanner-${VERSION}.dmg"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Compute SHA256
id: sha
run: |
SHA=$(shasum -a 256 "FrameworkScanner-${VERSION}.dmg" | awk '{print $1}')
echo "sha256=$SHA" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: FrameworkScanner-${{ env.VERSION }}.dmg
generate_release_notes: true
- name: Update Homebrew Tap
env:
TAP_TOKEN: ${{ secrets.TAP_TOKEN }}
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git clone https://x-access-token:${TAP_TOKEN}@github.com/Geoion/homebrew-tap.git tap-repo
sed -i '' \
-e "s/version \".*\"/version \"${VERSION}\"/" \
-e "s/sha256 .*/sha256 \"${{ steps.sha.outputs.sha256 }}\"/" \
tap-repo/Casks/FrameworkScanner.rb
cd tap-repo
git add Casks/FrameworkScanner.rb
git commit -m "chore: bump FrameworkScanner to v${VERSION}"
git push