Skip to content

Commit da1396e

Browse files
cursoragentShiosOS
andcommitted
Release workflow: skip store publishing unless all required secrets are set
Co-authored-by: Julius Walton <ShiosOS@users.noreply.github.com>
1 parent 55eb56c commit da1396e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
# version twice, so re-running this workflow for an existing tag will
5959
# fail here — bump the version instead.
6060
- name: Sign the Firefox .xpi with Mozilla (AMO)
61-
if: env.AMO_JWT_ISSUER != ''
61+
if: env.AMO_JWT_ISSUER != '' && env.AMO_JWT_SECRET != ''
6262
run: |
6363
version="$(node -p "require('./manifest.json').version")"
6464
mkdir -p /tmp/xpi-src /tmp/xpi-signed
@@ -75,7 +75,9 @@ jobs:
7575
# Upload the .zip to the Chrome Web Store and publish. Google's
7676
# review still happens asynchronously on their side afterwards.
7777
- name: Publish to the Chrome Web Store
78-
if: env.CWS_EXTENSION_ID != ''
78+
if: >-
79+
env.CWS_EXTENSION_ID != '' && env.CWS_CLIENT_ID != '' &&
80+
env.CWS_CLIENT_SECRET != '' && env.CWS_REFRESH_TOKEN != ''
7981
env:
8082
EXTENSION_ID: ${{ env.CWS_EXTENSION_ID }}
8183
CLIENT_ID: ${{ env.CWS_CLIENT_ID }}

0 commit comments

Comments
 (0)