Skip to content

Commit f016842

Browse files
committed
Updated Workflow Trigger and Added Hexes
1 parent 9a1f3a1 commit f016842

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/mac-release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: SerialPrograms MacOS Release
22

33
on:
44
create:
5-
branch:
6-
# Start MacOS release flow when a new version branch is created
5+
push:
6+
branches:
77
- 'v*'
88
workflow_dispatch:
99
# Manual release / testing
@@ -35,6 +35,11 @@ on:
3535

3636
jobs:
3737
build:
38+
# Run when manually triggered, when a new version branch is created, or when a version branch is updated
39+
if: |
40+
github.event_name == 'workflow_dispatch' ||
41+
(github.event_name == 'create' && github.ref_type == 'branch' && startsWith(github.ref, 'refs/heads/v')) ||
42+
(github.event_name == 'push' && startsWith(github.ref, 'refs/heads/v'))
3843
runs-on: ${{ github.event.inputs.runner || 'macos-13'}}
3944
steps:
4045
- name: Checkout Arduino-Source
@@ -126,7 +131,9 @@ jobs:
126131
- name: GitHub Release
127132
uses: softprops/action-gh-release@v2
128133
with:
129-
files: SerialPrograms-Installer.dmg
134+
files: |
135+
SerialPrograms-Installer.dmg
136+
Packages/PABotBase/PABotBase-Switch/*
130137
# Tag should be automatically set in the case of a tag push
131138
tag_name: ${{ github.event.inputs.version || github.ref_name }}
132139
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)