Skip to content

Commit 438bff5

Browse files
committed
build: check signature success after signing
1 parent e6f92a0 commit 438bff5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-installers.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ jobs:
7272
security list-keychain -d user -s $KEYCHAIN_PATH
7373
- name: "Build with Maven"
7474
if: runner.os == 'MacOS'
75-
run: mvn -B clean install -DskipTests -Pbuild-installer -Pmacos-sign -Djavafx.platform=mac "-Dmatrix.os=${{ matrix.os }}" --file pom.xml
7675
run: mvn -B clean install -DskipTests -Pbuild-installer -Pmacos-sign -Djavafx.platform=mac "-Dmatrix.os=${{ matrix.os }}" --file pom.xml --no-transfer-progress
76+
- name: "Verify Signature"
77+
if: runner.os == 'MacOS'
78+
run: |
79+
codesign -dv --verbose=2 target/installer-work/image/Paintera.app 2>&1
80+
codesign -dv --verbose=2 target/installer-work/image/Paintera.app 2>&1 | grep -q "Authority=Developer ID Application: PainteraSelfSignedCert" || (echo "ERROR: App is not signed with expected certificate" && exit 1)
7781
7882
- name: Upload Installers
7983
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)