Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: docusaurus build on Windows with GitHub actions #2100

Merged
merged 3 commits into from
Dec 7, 2019

Conversation

endiliey
Copy link
Contributor

@endiliey endiliey commented Dec 7, 2019

Motivation

Testing GitHub actions to build Windows for both v1 and v2 to prevent regression

all code is kinda self-made from reading https://help.github.com/en/actions/automating-your-workflow-with-github-actions

Seems to work well

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

TBD. CI should appear ??
image

image

image

Gonna release 2.0.0-alpha.39 soon for hotfix

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Dec 7, 2019
@docusaurus-bot

This comment has been minimized.

@docusaurus-bot

This comment has been minimized.

tweak for docusaurus build on v1 and v2
@docusaurus-bot

This comment has been minimized.

@endiliey endiliey changed the title chore: add GitHub actions for v2 windows build chore: add GitHub actions for docusaurus on windows build Dec 7, 2019
@endiliey endiliey changed the title chore: add GitHub actions for docusaurus on windows build chore: docusaurus build on Windows with GitHub actions Dec 7, 2019
@docusaurus-bot

This comment has been minimized.

@endiliey endiliey added the pr: maintenance This PR does not produce any behavior differences to end users when upgrading. label Dec 7, 2019
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 8d24e31

https://deploy-preview-2100--docusaurus-2.netlify.com

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 8d24e31

https://deploy-preview-2100--docusaurus-preview.netlify.com

@endiliey
Copy link
Contributor Author

endiliey commented Dec 7, 2019

@JoelMarcey is it okay to use GitHub actions ? Just making sure

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

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

We could look into moving all our builds from Circle CI to GitHub actions already. I tried that few months ago but they didn't have good support for non-root level npm projects. Glad that's fixed now.

Anyway here's Relay's Docusaurus GitHub workflow if you're interested in referring.

One thing to note is that I think GitHub actions also run on forks and then it might use up the contributors quota or not work well if they make a PR to Docusaurus 😂

.github/workflows/nodejs-windows.yml Show resolved Hide resolved
@endiliey
Copy link
Contributor Author

endiliey commented Dec 7, 2019

Hmm relay’s one is on linux. We have an equivalent config on our circleci. I explicitly use gh actions since it supports windows build.
For normal build (on linux), we rely on netlify

I think its not a good idea yet to move to gh action since its still new and I notice slower build on gh actions than circleci. Im also more familiar with circleci and/or travis

Maybe worth a revisit in future

@endiliey endiliey merged commit 3246939 into master Dec 7, 2019
@endiliey
Copy link
Contributor Author

endiliey commented Dec 7, 2019

Its also hard for me to configure the move because we need to set the environment variable (such as crowdin api key). I also have limited access to this repo, example: “Setting” is not available for me

Need this to set environment variable
image

@endiliey
Copy link
Contributor Author

endiliey commented Dec 7, 2019

Mentioning that, I also dont have access to docusaurus crowdin api key 🤣 so I cant help on the move. The env is all hidden in circleci

@endiliey endiliey deleted the endiliey-windows branch December 7, 2019 05:46
@endiliey
Copy link
Contributor Author

endiliey commented Dec 7, 2019

Uhh .. github mobile beta didn't squash and merge the PR 😢

@JoelMarcey
Copy link
Contributor

@endiliey I think we can get you access to the api key. Would that help you immediately?

@endiliey
Copy link
Contributor Author

endiliey commented Dec 8, 2019

@JoelMarcey I think we dont need to do anything for now. The thing is, GitHub action requires full access to the repo to setup environment variable (in particular the “setting”). But I think that can be very dangerous. Lets stick with circleci for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: maintenance This PR does not produce any behavior differences to end users when upgrading.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants