Skip to content

Commit 423f28f

Browse files
committed
fix: gh action config to handle manual workflow triggers
1 parent e7e8127 commit 423f28f

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build-macos.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
run: hdiutil verify dist/Taskito.dmg
5252

5353
- name: Upload Release Asset
54+
if: github.event_name == 'release'
5455
uses: actions/upload-release-asset@v1
5556
with:
5657
upload_url: ${{ github.event.release.upload_url }}
@@ -59,3 +60,11 @@ jobs:
5960
asset_content_type: application/x-apple-diskimage
6061
env:
6162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
64+
- name: Upload DMG as Artifact
65+
if: github.event_name == 'workflow_dispatch'
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: Taskito-DMG
69+
path: dist/Taskito.dmg
70+
retention-days: 30

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The repository includes a GitHub Action that automatically builds and creates a
6262
1. Go to "Actions" tab in the GitHub repository
6363
2. Select "Build and Release macOS App" workflow
6464
3. Click "Run workflow"
65-
4. The DMG will be available in the workflow artifacts
65+
4. Once complete, download the DMG from the workflow run's "Artifacts" section
6666

6767
## Installation
6868

0 commit comments

Comments
 (0)