Skip to content

Commit fb05efe

Browse files
authored
Merge pull request #580 from Ericzklm/main
Fixed Mac Build Trigger
2 parents 9a1f3a1 + 57d9c52 commit fb05efe

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/mac-release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: SerialPrograms MacOS Release
22

33
on:
4-
create:
5-
branch:
6-
# Start MacOS release flow when a new version branch is created
4+
push:
5+
branches:
76
- 'v*'
87
workflow_dispatch:
98
# Manual release / testing
@@ -35,6 +34,10 @@ on:
3534

3635
jobs:
3736
build:
37+
# Run when manually triggered, when a new version branch is created, or when a version branch is updated
38+
if: |
39+
github.event_name == 'workflow_dispatch' ||
40+
(github.event_name == 'push' && startsWith(github.ref, 'refs/heads/v'))
3841
runs-on: ${{ github.event.inputs.runner || 'macos-13'}}
3942
steps:
4043
- name: Checkout Arduino-Source
@@ -126,7 +129,9 @@ jobs:
126129
- name: GitHub Release
127130
uses: softprops/action-gh-release@v2
128131
with:
129-
files: SerialPrograms-Installer.dmg
132+
files: |
133+
SerialPrograms-Installer.dmg
134+
Packages/PABotBase/PABotBase-Switch/*
130135
# Tag should be automatically set in the case of a tag push
131136
tag_name: ${{ github.event.inputs.version || github.ref_name }}
132137
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)