Skip to content

Conversation

@graycreate
Copy link
Member

Summary

  • Fixed handling of empty GHUI_KEY_ALIAS environment variable
  • Now properly defaults to 'ghui' when the environment variable is empty or whitespace-only
  • This should resolve the 'Keystore was tampered with' errors in the release workflow

Context

The release workflow was failing with:

Failed to read key *** from store "/home/runner/work/Android/Android/app/keystore.jks": Keystore was tampered with, or password was incorrect

This was happening because when GHUI_KEY_ALIAS is set but empty in GitHub secrets, the previous code would use an empty string as the key alias instead of the default 'ghui'.

Test Plan

  • Release workflow should successfully build signed APKs and bundles
  • The key alias should default to 'ghui' when not specified

🤖 Generated with Claude Code

- Check if GHUI_KEY_ALIAS is empty string and default to 'ghui'
- Prevents 'Keystore was tampered with' errors when key alias is empty
- Ensures consistent key alias handling in CI/CD

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@graycreate graycreate merged commit e925e0f into main Jul 9, 2025
2 of 4 checks passed
@graycreate graycreate deleted the bugfix/fix-key-alias-handling branch July 9, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants