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

   Hi @delei, thanks for the suggestion! I've implemented the GitHub Actions 
approach using the 
[netlify-actions](https://github.com/marketplace/actions/netlify-actions).
   
   ## Implementation
   I've created a workflow that builds the documentation and deploys preview 
sites to Netlify when PRs modify the `website/` directory. The workflow follows 
the same pattern as the existing `deploy-docs.yml` file. You can review the 
implementation on 
[this](https://github.com/ongdisheng/fesod/tree/feat/add-netlify-preview-workflow)
 branch. I've also created a test [PR 
](https://github.com/ongdisheng/fesod/pull/6) that demonstrates the workflow in 
action, where you can see the GitHub Actions bot automatically posting the 
preview URL as a comment.
   
   ## Setup requirements
   The upstream repository will need two secrets configured:
   - `NETLIFY_AUTH_TOKEN`: Personal access token from Netlify
   - `NETLIFY_SITE_ID`: Site API ID from Netlify dashboard
   
   Feel free to let me know if you'd like me to submit a PR, or if any 
adjustments are needed!
   Thanks a lot!


-- 
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