Skip to content

Commit

Permalink
Update create-macos-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
asivery authored Aug 21, 2024
1 parent 8760999 commit 687a0b3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/create-macos-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build and Release macOS App

on:
workflow_dispatch:
inputs:
release_name:
description: 'Name of the release'
required: true
default: 'New Release'

jobs:
build-and-release:
Expand All @@ -19,15 +24,8 @@ jobs:
- name: Install dependencies
run: npm install

- name: Build macOS app
- name: Build and release macOS app
run: npm run dist-mac

- name: Find and upload dmg files
run: |
DMG_FILES=$(find build/ -name "*.dmg")
for file in $DMG_FILES; do
echo "Uploading $file"
gh release upload "$GITHUB_REF" "$file"
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NAME: ${{ github.event.inputs.release_name }}

0 comments on commit 687a0b3

Please sign in to comment.