Skip to content

fix: Use environment variables for CI/CD signing configuration #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2025

Conversation

graycreate
Copy link
Member

Summary

  • Fixed the release workflow failure by properly reading environment variables in build.gradle
  • Changed from project.hasProperty() to System.getenv() for CI/CD environment detection
  • GitHub Actions passes secrets as environment variables, not Gradle properties

Context

The release workflow was failing with:

Release builds require signing configuration. Please provide GHUI_KEYSTORE_PASSWORD and GHUI_KEY_PASSWORD.

This was because the build.gradle was checking for Gradle properties, but GitHub Actions sets environment variables.

Test Plan

  • CI workflow should pass and build signed APKs
  • Release workflow should successfully create releases
  • Local builds should still work as before

🤖 Generated with Claude Code

- Change from project.hasProperty() to System.getenv() for CI/CD environment
- GitHub Actions passes secrets as environment variables, not Gradle properties
- This fixes the 'Release builds require signing configuration' error in CI

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

Co-Authored-By: Claude <noreply@anthropic.com>
@graycreate graycreate merged commit bcb904e into main Jul 9, 2025
3 of 5 checks passed
@graycreate graycreate deleted the bugfix/ci-signing-env-vars branch July 9, 2025 15:21
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.

1 participant