File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: SerialPrograms MacOS Release
22
33on :
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
3535
3636jobs :
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 }}
You can’t perform that action at this time.
0 commit comments