Skip to content

Update nextjs.yml#240

Merged
syed-reza98 merged 5 commits intomainfrom
rezwana-karim-patch-2
Oct 12, 2025
Merged

Update nextjs.yml#240
syed-reza98 merged 5 commits intomainfrom
rezwana-karim-patch-2

Conversation

@rezwana-karim
Copy link
Copy Markdown
Collaborator

This pull request updates the environment variable configuration in the GitHub Actions workflow for Next.js. The main changes involve replacing placeholder Cloudinary credentials with empty strings and introducing new Gmail-related variables for email functionality, as well as a test email recipient.

Environment variable updates:

  • Added GMAIL_USER, GMAIL_APP_PASSWORD, and GMAIL_FROM variables for Gmail integration.
  • Added TEST_EMAIL_TO variable to specify the test email recipient.
  • Set CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, and CLOUDINARY_API_SECRET to empty strings instead of placeholders.

@rezwana-karim
Copy link
Copy Markdown
Collaborator Author

This pull request updates the environment variable configuration in the GitHub Actions workflow for Next.js. The main changes involve replacing placeholder Cloudinary credentials with empty strings and introducing new Gmail-related variables for email functionality, as well as a test email recipient.

Environment variable updates:

  • Added GMAIL_USER, GMAIL_APP_PASSWORD, and GMAIL_FROM variables for Gmail integration.
  • Added TEST_EMAIL_TO variable to specify the test email recipient.
  • Set CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, and CLOUDINARY_API_SECRET to empty strings instead of placeholders.

This pull request updates the environment variable configuration in the GitHub Actions workflow for Next.js. The main changes involve replacing placeholder Cloudinary credentials with empty strings and introducing new Gmail-related variables for email functionality, as well as a test email recipient.

Environment variable updates:

  • Added GMAIL_USER, GMAIL_APP_PASSWORD, and GMAIL_FROM variables for Gmail integration.
  • Added TEST_EMAIL_TO variable to specify the test email recipient.
  • Set CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, and CLOUDINARY_API_SECRET to empty strings instead of placeholders.

@copilot Use Gmail for send email from GitHub Pages Production

Copilot AI and others added 3 commits October 12, 2025 00:15
Co-authored-by: rezwana-karim <126201034+rezwana-karim@users.noreply.github.com>
Co-authored-by: rezwana-karim <126201034+rezwana-karim@users.noreply.github.com>
@syed-reza98 syed-reza98 marked this pull request as ready for review October 12, 2025 00:24
Copilot AI review requested due to automatic review settings October 12, 2025 00:24
@syed-reza98 syed-reza98 merged commit b5294af into main Oct 12, 2025
3 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the GitHub Actions workflow configuration to properly support email functionality through Gmail integration. The changes replace placeholder Cloudinary credentials with empty strings and introduce new Gmail-related environment variables for email services.

Key changes:

  • Added Gmail integration with proper credentials and configuration
  • Updated documentation to include secrets setup guide for email functionality
  • Replaced Cloudinary placeholders with empty strings for static deployment

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Added reference to new GitHub Secrets setup documentation
QUICK_DEPLOY_GITHUB_PAGES.md Updated deployment guide with Gmail secrets configuration steps
GITHUB_SECRETS_SETUP.md New comprehensive guide for configuring email functionality secrets
GITHUB_PAGES_DEPLOYMENT.md Updated deployment documentation with required secrets information
.github/workflows/nextjs.yml Added Gmail environment variables and replaced Cloudinary placeholders

### 4. TEST_EMAIL_TO
**Description**: Email address to receive test emails and notifications.

**Example**: `admin@example.com` or `arvincia@sparrow-group.com`
Copy link

Copilot AI Oct 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Corrected spelling of 'arvincia' - appears to be a combination of names that should be 'arvin-incia' or similar.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

GMAIL_USER="${{ secrets.GMAIL_USER }}"
GMAIL_APP_PASSWORD="${{ secrets.GMAIL_APP_PASSWORD }}"
GMAIL_FROM="${{ secrets.GMAIL_FROM }}"
TEST_EMAIL_TO="${{ secrets.TEST_EMAIL_TO }}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Gmail Credentials Unused in Static Deployments

The workflow configures Gmail credentials for server-side email, but static GitHub Pages deployments cannot execute server-side code or API routes. This makes the credentials unused and contradicts existing workflow comments. Additionally, these new required secrets lack validation or a fallback, potentially causing build failures if missing.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment