GitHub workflows: sign also CI if key avail. [mac]

This commit is contained in:
Martin Pulec
2020-03-27 14:44:16 +01:00
parent 3010b8cba5
commit a61a4dc16e
2 changed files with 13 additions and 3 deletions

View File

@@ -11,7 +11,11 @@ DEVELOPER_USERNAME=martin.pulec@cesnet.cz
if [ -z "$apple_key_p12_b64" -o -z "$altool_pass" ]; then
echo "Could not find key to sign the application" 2>&1
exit 1
if [ "$GITHUB_WORKFLOW" = nightly ]; then
exit 1
else
exit 0
fi
fi
# Import keys

View File

@@ -56,6 +56,8 @@ jobs:
name: run macOS
runs-on: macos-latest
env:
altool_pass: ${{ secrets.altool_pass }}
apple_key_p12_b64: ${{ secrets.apple_key_p12_b64 }}
sdk_pass: ${{ secrets.sdk_pass }}
steps:
@@ -66,8 +68,12 @@ jobs:
run: .github/scripts/macOS/prepare.sh
- name: configure
run: ./autogen.sh --enable-qt --with-live555=/usr/local
- name: make
run: make -j4 osx-gui-dmg
- name: make bundle
run: make -j4 gui-bundle
- name: sign+notarize
run: .github/scripts/macOS/sign.sh gui/QT/uv-qt.app
- name: make dmg
run: make osx-gui-dmg
- name: make check
run: make check
- name: make distcheck