Skip to content

Commit 64a133d

Browse files
committed
fix(ci): split artifact uploads and add if-no-files-found handling
Split artifact uploads into separate steps: - macos-builds-x64/arm64: DMG, blockmap, zip, and yml files - macos-builds-mas: MAS package (only on arm64 job) - macos-redisstack-x64/arm64: redisstack artifacts (production only) Added if-no-files-found: warn to prevent upload failures when optional artifacts don't exist.
1 parent 849d8c6 commit 64a133d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/pipeline-build-macos.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,29 @@ jobs:
126126
uses: actions/upload-artifact@v4
127127
with:
128128
name: macos-builds-${{ matrix.arch }}
129+
if-no-files-found: warn
129130
path: |
130131
./release/Redis-Insight*${{ matrix.arch }}.dmg
131132
./release/Redis-Insight*${{ matrix.arch }}.dmg.blockmap
132133
./release/Redis-Insight*${{ matrix.arch }}.zip
133-
./release/Redis-Insight*.pkg
134134
./release/*-mac.yml
135+
136+
- name: Upload macos MAS package
137+
if: matrix.arch == 'arm64'
138+
uses: actions/upload-artifact@v4
139+
with:
140+
name: macos-builds-mas
141+
if-no-files-found: warn
142+
path: |
143+
./release/Redis-Insight*.pkg
144+
145+
- name: Upload redisstack artifacts
146+
if: vars.ENV == 'production' && inputs.target == vars.ALL
147+
uses: actions/upload-artifact@v4
148+
with:
149+
name: macos-redisstack-${{ matrix.arch }}
150+
if-no-files-found: warn
151+
path: |
135152
./release/redisstack
136153
137154
env:

0 commit comments

Comments
 (0)