docs(v2): add deployment workflow manual for GitHub Actions #2670
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I built a workflow to deploy docs for our project with GitHub Actions. After testing it on our repository I'm happy to share it with other Docusaurus users.
Motivation
I haven't found nice docs on deploying Docusaurus with GitHub Actions. I spent quite some time to test out such a deployment for our project. I think it's a popular deployment option and other Docusaurus users will benefit from it.
Amended this towards
deployment.md
inmaster
as requested.Have you read the Contributing Guidelines on pull requests?
Yes, I did.
Test Plan
These PR contributes only to documentations. I verified everything step by step in my project's repository which lead to successful deployment of documentation to GH Pages.
![image](https://user-images.githubusercontent.com/10460752/80315452-ecef5080-87f7-11ea-81a9-091826d23e4e.png)
![image](https://user-images.githubusercontent.com/10460752/80315558-97677380-87f8-11ea-9505-b81474fcdf7b.png)
Here's green pipeline screenshot:
Here's a result hosted on GH pages:
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)