Skip to content

Refactor CI/CD workflow for improved structure and clarity#1

Merged
FullStackFlow-dev merged 1 commit intomainfrom
FullStackFlow-dev-patch-1
Apr 10, 2026
Merged

Refactor CI/CD workflow for improved structure and clarity#1
FullStackFlow-dev merged 1 commit intomainfrom
FullStackFlow-dev-patch-1

Conversation

@FullStackFlow-dev
Copy link
Copy Markdown
Owner

@FullStackFlow-dev FullStackFlow-dev commented Apr 10, 2026

Réorganisation du script ci-cd, du workflows GitHub action qui bloque le déploiement des nouvelles mises à jour, en production sur Vercel

Summary by CodeRabbit

  • Chores
    • Optimized CI/CD pipeline workflow structure and job dependencies.
    • Enhanced link validation output for improved readability.
    • Updated progress reporting to include additional documentation directories.
    • Streamlined deployment configuration.

Réorganisation du script ci-cd, du workflows GitHub action qui bloque le déploiement des nouvelles mises à jour, en production sur Vercel
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
merph-dev Ready Ready Preview, Comment Apr 10, 2026 5:12pm
merph-dev-portfolio Ready Ready Preview, Comment Apr 10, 2026 5:12pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 10, 2026

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 50ee4abf-da1a-4560-a919-75fbb41865b6

📥 Commits

Reviewing files that changed from the base of the PR and between 4677624 and 9b2571d.

📒 Files selected for processing (1)
  • .github/workflows/ci-cd.yml
 ___________________________________________________________________________
< Two hard things: cache invalidation, naming things, and off-by-one jokes. >
 ---------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)

✅ Unit Test PR creation complete.

  • Create PR with unit tests
  • Commit unit tests in branch FullStackFlow-dev-patch-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can enforce grammar and style rules using `languagetool`.

Configure the reviews.tools.languagetool setting to enable/disable rules and categories. Refer to the LanguageTool Community to learn more.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9b2571d4fd

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci-cd.yml
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 10, 2026

Note

Unit test generation is a public access feature. Expect some limitations and changes as we gather feedback and continue to improve it.


Generating unit tests... This may take up to 20 minutes.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/ci-cd.yml:
- Around line 159-162: The deploy job is publishing a stale ./docs because the
report job uploads docs/latest-report.json as an artifact
(actions/upload-artifact@v4) but deploy never downloads it; add an
actions/download-artifact@v4 step in the deploy job (using name:
progress-report) before the GitHub Pages publish step so the generated
docs/latest-report.json is restored into the workspace (or into ./docs) and then
published; update the download step to place the artifact at the expected path
so the existing publish step can pick up the new report.
- Around line 120-157: The embedded Python here-doc under the GitHub Actions
step (the block starting with run: | and python3 << 'EOF') is not indented, so
YAML parses the script as outdented content and the workflow is invalid; fix by
indenting every line of the embedded script (all lines between the python3 <<
'EOF' and the closing EOF) so they are nested under the run: | block (i.e., add
consistent leading spaces so the here-doc block is a child of run: |), ensuring
the EOF markers remain aligned and the YAML parses; check the run step and
python3 << 'EOF' block after editing (the run: | step is the unique symbol to
locate).
🪄 Autofix (Beta)

❌ Autofix failed (check again to retry)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 50ee4abf-da1a-4560-a919-75fbb41865b6

📥 Commits

Reviewing files that changed from the base of the PR and between 4677624 and 9b2571d.

📒 Files selected for processing (1)
  • .github/workflows/ci-cd.yml

Comment thread .github/workflows/ci-cd.yml
Comment on lines +159 to 162
- uses: actions/upload-artifact@v4
with:
name: progress-report
path: docs/latest-report.json
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot Apr 10, 2026

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

wc -l .github/workflows/ci-cd.yml

Repository: FullStackFlow-dev/Merph-dev-Portfolio

Length of output: 112


🏁 Script executed:

cat -n .github/workflows/ci-cd.yml | sed -n '150,200p'

Repository: FullStackFlow-dev/Merph-dev-Portfolio

Length of output: 1036


Download the generated report artifact before publishing to GitHub Pages.

Lines 159-162 upload docs/latest-report.json as an artifact in the report job, but the deploy job (lines 179-185) never downloads it. Each GitHub Actions job runs in its own workspace. The fresh checkout in the deploy job at line 179 will publish the stale ./docs from the repository, not the newly generated report.

📦 Proposed fix
       - uses: actions/checkout@v4
+
+      - uses: actions/download-artifact@v4
+        with:
+          name: progress-report
+          path: .
 
       - uses: peaceiris/actions-gh-pages@v4
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           publish_dir: ./docs
           publish_branch: gh-pages
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/ci-cd.yml around lines 159 - 162, The deploy job is
publishing a stale ./docs because the report job uploads docs/latest-report.json
as an artifact (actions/upload-artifact@v4) but deploy never downloads it; add
an actions/download-artifact@v4 step in the deploy job (using name:
progress-report) before the GitHub Pages publish step so the generated
docs/latest-report.json is restored into the workspace (or into ./docs) and then
published; update the download step to place the artifact at the expected path
so the existing publish step can pick up the new report.

✅ Confirmed as addressed by @FullStackFlow-dev

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

   - uses: actions/checkout@v4
  •  - uses: actions/download-artifact@v4
    
  •    with:
    
  •      name: progress-report
    
  •      path: .
    
     - uses: peaceiris/actions-gh-pages@v4
       with:
         github_token: ${{ secrets.GITHUB_TOKEN }}
         publish_dir: ./docs
         publish_branch: gh-pages
    

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@FullStackFlow-dev, great — that's exactly the fix needed! With actions/download-artifact@v4 added before the GitHub Pages publish step, the freshly generated docs/latest-report.json will be restored into the workspace and correctly deployed instead of the stale version from the repository checkout. ✅

(_(
(-.-)
o_(")(")


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 10, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

An unexpected error occurred while generating fixes: Resource not accessible by integration - https://docs.github.com/rest/git/trees#create-a-tree

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 10, 2026

✅ Created PR with unit tests: #2

@FullStackFlow-dev FullStackFlow-dev merged commit d7f7cee into main Apr 10, 2026
4 checks passed
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