ongdisheng commented on issue #703:
URL: https://github.com/apache/fesod/issues/703#issuecomment-3585603182

   Hi @delei, Thank you for the clarification! Now, I got a better 
understanding. Probably we can try with these:
   1. `ci-docs.yml`: Combined markdown linting and build for PRs
   
   ```yml
   on:
     pull_request:
       paths: ['website/**']
   
   jobs:
     lint-and-build:
       - Check which files changed in the PR
       - Lint Markdown (only if .md files changed)
         - Run markdownlint-cli2 
         - Fail if lint errors found
       - Setup pnpm and Node.js
       - Enable corepack
       - Install dependencies (pnpm install)
       - Build website (pnpm build)
       - Upload artifact (website/build) 
   ```
   
   2. `ci-docs-preview.yml` or `preview-docs.yml`: Netlify preview deployment
   
   ```yml
   on:
     workflow_run:
       workflows: ["Documentation CI"]
       types: [completed]
   
   jobs:
     preview:
       - Download artifact
       - Unzip artifact
       - Deploy to Netlify
       - Comment on PR with preview link
   ``` 
   
   3. `deploy-docs.yml`: Keep unchanged
   
   Does this match what you're looking for? 😊


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to