aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChristoph Settgast <csett86@web.de>2022-01-11 20:14:39 +0100
committerChristoph Settgast <csett86@web.de>2022-01-11 20:14:39 +0100
commit57b4545fe3f50aafc82263fa14856f591aec8f73 (patch)
tree460de30b314d0005e3b20b005940915760d18b0c /.github
parent7c30eb5c87491b0fba9c23ee6346cf9d27bb209b (diff)
ci(mac): run prep step if secret is set
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d2135d3..16d6a75 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -41,7 +41,9 @@ jobs:
with:
node-version: '16'
- name: Prepare for app signing and notarization
- if: ${{ github.event_name != 'pull_request' }}
+ env:
+ API_KEY: ${{ secrets.api_key }}
+ if: ${{ env.API_KEY }}
run: |
echo "CSC_LINK=${{ secrets.mac_cert }}" >> $GITHUB_ENV
echo "CSC_KEY_PASSWORD=${{ secrets.mac_cert_password }}" >> $GITHUB_ENV