PreTeXtBook / pretext-codespace

A template for creating a PreTeXt project that runs in GitHub Codespaces
MIT License
10 stars 10 forks source link

Github action for building PreTeXt #19

Open siefkenj opened 5 months ago

siefkenj commented 5 months ago

Not sure where this issue should go, but I have made a github action for building pretext. https://github.com/siefkenj/pretext-build-action When we're comfortable that it works, it should probably move to pretextbook/pretext-build-action.

@StevenClontz @oscarlevin @bjones1 Do ya'll have comments?

StevenClontz commented 5 months ago

Does this do a pip install -r requirements.txt anywhere? That will ensure that the proper version of pretext-cli is used.

I'd like to use this to get automatic builds for any PR made against github.com/TeamBasedInquiryLearning, at least for the PreTeXt stuff. Would you be available to sync up sometime during PROSE office hours (or otherwise) to help me wire this up? It would be a good field test for this.

siefkenj commented 5 months ago

No pip install is done, but that should be an easy change. Am I reading correctly that your office hours are 9-11am Eastern on Wednesday?

StevenClontz commented 5 months ago

Yep.

siefkenj commented 5 months ago

I could stop by at 11. Would that work?

StevenClontz commented 5 months ago

Sure - I'll stick around in the https://PROSE.runestone.academy/dropin link after we wrap at 11 eastern to chat with you.

oscarlevin commented 5 months ago

What do you think about having a examples directory in pretext-cli that contained github actions that people could use/modify if they wanted?

StevenClontz commented 5 months ago

I think that the majority of authors will want automatic builds and deployments, so I'd strongly support making this part of pretext init/new, with instructions on how to disable them.