Add Google Drive API credentials to production builds #430
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds Google Drive API credentials (Client ID and API Key) as environment variables to the CI/CD workflow, enabling Google Drive integration features in production deployments.
Changes
Modified Files
.github/workflows/ci-cd.yml: AddedGOOGLE_CLIENT_IDandGOOGLE_API_KEYenvironment variables to build stepsEnvironment Variables Added
The following GitHub Secrets are now injected into three build steps:
Run Build (initial production build)
Rebuild for smalruby3-gui GitHub Pages
https://smalruby.github.io/smalruby3-gui/Rebuild for branch GitHub Pages
Deployment Targets
These environment variables will be available in:
Required GitHub Settings
Before merging this PR, the following GitHub Secrets must be configured in the repository:
Steps to Configure
https://github.com/smalruby/smalruby3-gui/settings/secrets/actionsSecret 1: GOOGLE_CLIENT_ID
Secret 2: GOOGLE_API_KEY
Google Cloud Console Configuration
Ensure the following URLs are added to your Google Cloud Console settings:
OAuth 2.0 Client - Authorized JavaScript origins
https://smalruby.apphttps://smalruby.github.ioAPI Key - Website restrictions
https://smalruby.app/*https://smalruby.github.io/*See docs/google-drive-setup.md for detailed setup instructions.
Testing
After merging and configuring the secrets:
Security Notes
Related Issues
Documentation
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com