Skip to content

Commit ad7e980

Browse files
committed
fix: take arch name into account for mac artifacts
1 parent bc6cb6e commit ad7e980

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,18 @@ jobs:
8181
if: matrix.os == 'macos-latest' && env.SCRATCH_SHOULD_SIGN == 'true'
8282
run: |
8383
NPM_APP_VERSION="`node -pe "require('./package.json').version"`"
84-
cd dist/mas-dev
84+
MAS_DEV_DIR=$(find dist -type d -name "mas-dev*" | head -n 1 | xargs basename)
85+
cd dist/${MAS_DEV_DIR}
8586
ditto -v -c -k --sequesterRsrc --keepParent --zlibCompressionLevel 9 \
86-
Scratch*.app ../mas-dev-${NPM_APP_VERSION}.zip
87+
Scratch*.app ../${MAS_DEV_DIR}-${NPM_APP_VERSION}.zip
8788
- name: Upload macOS artifacts
8889
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
8990
if: matrix.os == 'macos-latest'
9091
with:
9192
name: macOS
9293
path: |
9394
dist/Scratch*.dmg
94-
dist/mas/Scratch*.pkg
95+
dist/mas-*/Scratch*.pkg
9596
dist/mas-dev-*.zip
9697
- name: Upload Windows artifacts
9798
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4

0 commit comments

Comments
 (0)