Skip to content

Commit 0e1b9df

Browse files
authored
ci: notarize a zip for macos code signing (#205)
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
1 parent 654575e commit 0e1b9df

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,11 @@ jobs:
143143
security import apple_certificate.p12 -k build.keychain -P "${{ secrets.APPLE_CERTIFICATE_PASSWORD }}" -T /usr/bin/codesign
144144
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${{ secrets.APPLE_KEYCHAIN_PASSWORD }}" build.keychain
145145
/usr/bin/codesign --force -s "Developer ID Application: Blink Labs Software (${{ secrets.APPLE_TEAM_ID }})" --timestamp --options runtime -i com.blinklabssoftware.bursa bursa -v
146+
_filename=bursa-${{ env.RELEASE_TAG }}-${{ matrix.os }}-${{ matrix.arch }}.zip
147+
zip -r ${_filename} bursa
146148
xcrun notarytool store-credentials "notarytool-profile" --apple-id "${{ secrets.APPLE_ID }}" --team-id "${{ secrets.APPLE_TEAM_ID }}" --password "${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}"
147-
xcrun notarytool submit bursa --keychain-profile "notarytool-profile" --wait
149+
xcrun notarytool submit ${_filename} --keychain-profile "notarytool-profile" --wait
150+
148151
- name: Upload release asset
149152
if: startsWith(github.ref, 'refs/tags/')
150153
run: |
@@ -157,7 +160,9 @@ jobs:
157160
fi
158161
if [[ "${{ matrix.os }}" == "darwin" ]]; then
159162
_filename=bursa-${{ env.RELEASE_TAG }}-${{ matrix.os }}-${{ matrix.arch }}.zip
160-
zip -r ${_filename} bursa
163+
if [[ ! -e ${_filename} ]]; then
164+
zip -r ${_filename} bursa
165+
fi
161166
fi
162167
curl \
163168
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \

0 commit comments

Comments
 (0)