To revert: force IS_STAGING
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/workflows/build-apps.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/build-apps.yml
									
									
									
									
										vendored
									
									
								
							@ -10,7 +10,8 @@ on:
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
  IS_RELEASE: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
 | 
			
		||||
  IS_STAGING: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
 | 
			
		||||
  # IS_STAGING: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
 | 
			
		||||
  IS_STAGING: true
 | 
			
		||||
 | 
			
		||||
concurrency:
 | 
			
		||||
  group: ${{ github.workflow }}-${{ github.ref }}
 | 
			
		||||
@ -215,6 +216,7 @@ jobs:
 | 
			
		||||
          CSC_LINK: ${{ secrets.APPLE_CERTIFICATE }}
 | 
			
		||||
          CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
 | 
			
		||||
          CSC_KEYCHAIN: ${{ secrets.APPLE_SIGNING_IDENTITY }}
 | 
			
		||||
          CSC_FOR_PULL_REQUEST : true
 | 
			
		||||
          WINDOWS_CERTIFICATE_THUMBPRINT: ${{ secrets.WINDOWS_CERTIFICATE_THUMBPRINT }}
 | 
			
		||||
        run: npm run tronb:package:${{ env.IS_STAGING == 'true' && 'prod' || 'dev' }}
 | 
			
		||||
 | 
			
		||||
@ -254,7 +256,8 @@ jobs:
 | 
			
		||||
    permissions:
 | 
			
		||||
      contents: write
 | 
			
		||||
    # Equivalent to IS_RELEASE || IS_STAGING (but we can't access those env vars here)
 | 
			
		||||
    if: ${{ (github.ref_type == 'tag' && startsWith(github.ref_name, 'v')) || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
 | 
			
		||||
    # if: ${{ (github.ref_type == 'tag' && startsWith(github.ref_name, 'v')) || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
 | 
			
		||||
    if: true
 | 
			
		||||
    env:
 | 
			
		||||
      VERSION_NO_V: ${{ needs.prepare-files.outputs.version }}
 | 
			
		||||
      VERSION: ${{ format('v{0}', needs.prepare-files.outputs.version) }}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user