Set JEKYLL_ENV for help deploys#90725
Conversation
|
Your New Help changes have been deployed to https://32e991b9.newhelp.pages.dev ⚡️ |
|
@brunovjk @MelvinBot I made the change, but the helpsite looks totally different now. Any idea why?
|
|
The I searched the entire The only place Possible explanations for the visual change:
I'd suggest comparing against the current production site at |
|
|
||
| # Manually run Jekyll, bypassing Github Pages | ||
| - name: Build Jekyll site | ||
| env: |
There was a problem hiding this comment.
Lines 1 to 7 in 3210e49
from this, would it be better to flip the if/else and say if its dev, then dev else assume production?
There was a problem hiding this comment.
Good point — defaulting to production and only using the dev URL when JEKYLL_ENV is explicitly set to development does sound safer.
cc: @puneetlath
|
@MelvinBot can you implement that feedback? |
|
The feedback from Change {% if jekyll.environment == "production" %}
{% assign MAIN_SITE_URL = "https://new.expensify.com" %}
{% else %}
{% assign MAIN_SITE_URL = "https://dev.new.expensify.com:8082" %}
{% endif %}To: {% if jekyll.environment == "development" %}
{% assign MAIN_SITE_URL = "https://dev.new.expensify.com:8082" %}
{% else %}
{% assign MAIN_SITE_URL = "https://new.expensify.com" %}
{% endif %}With this change, you could also remove the
|
|
@MelvinBot I made you an assignee. Can you push the change now? |
Inverts the if/else so production is the default and dev URL is only used when JEKYLL_ENV is explicitly set to development. Removes the now-unnecessary JEKYLL_ENV=production from both deploy workflows. Co-authored-by: Puneet Lath <puneetlath@users.noreply.github.com>
|
Pushed the change in e6dd757. Here's what I did:
|
|
@MelvinBot why is the |
|
The The workflow uses it to post/update a preview comment. You'd need to replace it with an alternative (e.g., |
|
@MelvinBot where do we use |
|
It's used in exactly two workflow files, both for posting/updating a Cloudflare Pages preview URL comment on PRs:
Both alternatives I mentioned ( |
|
@MelvinBot who authored the original workflow that uses |
|
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
grgia
left a comment
There was a problem hiding this comment.
@puneetlath build is failing but looks like a permissions error
|
@puneetlath tests failing |
allgandalf
left a comment
There was a problem hiding this comment.
LGTM! Lets ship this 🚀
Found this PR cause i reported similar bug here https://expensify.slack.com/archives/C049HHMV9SM/p1779909312136189
|
What else is needed to merge this PR? Thank you. |
|
@brunovjk tests to pass |
|
confirm if we need to make this suggestion:
|
|
Yes, the suggestion is correct and necessary. As it stands, this PR is a no-op for the deployed help site — the Concierge link will still point to Why: Jekyll defaults So One discrepancy worth flagging: the PR body says it "Sets Trace + scope notesNew
So adding On "both build steps": there are two help workflows — |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e6dd757ada
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| {% if jekyll.environment == "development" %} | ||
| {% assign MAIN_SITE_URL = "https://dev.new.expensify.com:8082" %} |
There was a problem hiding this comment.
Set JEKYLL_ENV where the deploy build runs
In the inspected deployExpensifyHelp workflow, the production push build at .github/workflows/deployExpensifyHelp.yml:70-72 still runs bundle exec jekyll build without exporting JEKYLL_ENV; with Jekyll's default unset environment being development, this branch still assigns MAIN_SITE_URL to https://dev.new.expensify.com:8082 for deployed help builds. As a result, the generated production help pages continue to send users to the dev Concierge URL instead of https://new.expensify.com/concierge unless the workflow is also changed to set JEKYLL_ENV=production.
Useful? React with 👍 / 👎.
# Conflicts: # .github/workflows/deployNewHelp.yml
…eet-help-build # Conflicts: # .github/workflows/deployNewHelp.yml
|
A preview of your ExpensifyHelp changes have been deployed to https://de2f9753.helpdot.pages.dev ⚡️ |
|
This is no longer needed. It was addressed here: #91119 |

Explanation of Change
Sets
JEKYLL_ENV=productionfor both help-site Jekyll deploy build steps. This ensuresdocs/_includes/CONST.htmlresolvesMAIN_SITE_URLtohttps://new.expensify.comduring deployed builds, so the generated Concierge link points tohttps://new.expensify.com/conciergeinstead ofhttps://dev.new.expensify.com:8082/concierge.Fixed Issues
$ #89309
PROPOSAL: #89309 (comment)
Tests
https://help.expensify.com/.Didn't find what you were looking for?.Send a message.https://new.expensify.com/concierge.https://new.expensify.com/HomeOffline tests
N/A.
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A
Android: mWeb Chrome
N/A
iOS: Native
N/A
iOS: mWeb Safari
N/A
MacOS: Chrome / Safari
N/A