Hi! To which one who can help me, I’m a total newb. I’m having issues pushing to GitHub.
I managed to publish to GitHub once through Plasmic’s Publish command, but now I just published and I cannot see the update on GitHub. To give you a hint, here is what the GitHub page looks like:
Then, someone on Slack told me this:
“You might be using loader, where no Plasmic-generated code is checked into your git repo.
Only codegen creates a new commit for every change you make.”
Now, I had a look at what this person suggested, but I’m not sure which way to go. All I want is to be able to make changes using Plasmic, then, when I’m ready, I want to publish those changes to GitHub. Is Codegen really the way to go? Because, I don’t need every single changes to be synched to GitHub…
Can someone guide me?
Thanks in advance.
1 Like
Hello @philippe_cote and welcome to the forum!
What kind of changes do you want to see in the Github repo? For instance, if you change the color of a text on a page from Red to Green and then Push to Github, do you expect to have a git commit that changes a certain CSS color rule somewhere from red to green? If that is the case, then Codegen is the mode you want.
Hi @sarah_ahmed,
Thanks for your answer.
I do not expect a commit for every single change. What I want to do is to be able to do multiple changes then eventually push the whole changeset to the repo.
Is that feasible?
Thanks.
You can uncheck the Push to Github action in the Publish popup if you want to skip making a commit.
Can you clarify what sort of changes you expect exactly? Code changes are only committed in codegen case because that’s the only mode where code is generated.
When you say I can uncheck “Push to GitHub”, do you mean this is a setting a can check somewhere once Codegen is enabled?
The sort of change I expect is just anything and everything I wish to do first (import an image, change a button color, add a frame…), then push together as a single update to a website.
In any case, what is the difference between the initial Publish to GitHub (which works) and the second Publish (which doesn’t work)?
Thanks.
Yes.
For those kind of changes, please use the Codegen mode.
In case of Codegen, there is no difference. Please make sure you are using Codegen mode and the publish should work.
For more details, I would recommend the following docs:
1 Like