Skip to content

Commit 861eb5b

Browse files
committed
Deploy on Branch Creation
Repo uses branches to record versions rather than tags
1 parent 68048e4 commit 861eb5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/mac-release.yml

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

33
on:
4-
push:
5-
tags:
6-
# Start MacOS release flow when a new version tag is created
4+
create:
5+
branch:
6+
# Start MacOS release flow when a new version branch is created
77
- 'v*'
88
workflow_dispatch:
99
# Manual release / testing
@@ -125,5 +125,5 @@ jobs:
125125
with:
126126
files: SerialPrograms-Installer.dmg
127127
# Tag should be automatically set in the case of a tag push
128-
tag_name: ${{ github.event.inputs.version }}
128+
tag_name: ${{ github.event.inputs.version || github.ref_name }}
129129
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)