diff --git a/.github/workflows/build-shared-android.yml b/.github/workflows/build-shared-android.yml index d4a0849a0..4453faace 100644 --- a/.github/workflows/build-shared-android.yml +++ b/.github/workflows/build-shared-android.yml @@ -35,7 +35,7 @@ jobs: android-build: name: Android Build runs-on: ubuntu-latest - environment: ${{ !contains(github.ref_name, 'beta') && 'production' || 'staging' }} + environment: ${{ (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, 'beta')) && 'production' || 'staging' }} env: STRICT: ${{ inputs.STRICT }} ENV: ${{ vars.ENV }} diff --git a/.github/workflows/build-shared-ios.yml b/.github/workflows/build-shared-ios.yml index 6150815f9..b74a32dd8 100644 --- a/.github/workflows/build-shared-ios.yml +++ b/.github/workflows/build-shared-ios.yml @@ -39,7 +39,7 @@ jobs: ios-build: name: iOS Build runs-on: macos-14 - environment: ${{ !contains(github.ref_name, 'beta') && 'production' || 'staging' }} + environment: ${{ (startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, 'beta')) && 'production' || 'staging' }} env: STRICT: ${{ inputs.STRICT }} ENV: ${{ vars.ENV }}