open-education-hub / operating-systems

Teaching resources (OER) for Operating Systems
https://open-education-hub.github.io/operating-systems/
Other
63 stars 158 forks source link

workflows: Add PR deployment action #313

Closed teodutu closed 1 year ago

teodutu commented 1 year ago

The action builds the rendered website and pushes it to the gh-pages in a directory named after the PR number: refs/pull/<number>/merge. It then publishes a message containing the link where the website may be inspected.

I tested the action here: https://github.com/teodutu/operating-systems/pull/8#issuecomment-1739160737

gabrielmocanu commented 1 year ago

Any way to test it?

teodutu commented 1 year ago

Any way to test it?

Yes, the PR itself. The action fails unfortunately.

teodutu commented 1 year ago

I've made the changes you requested @gabrielmocanu. Let me know if you find a way to fix it.

razvand commented 1 year ago

@teodutu , is this still relevant? Should we use the workflows in the actions repository?

teodutu commented 1 year ago

Yes, it is relevant. We don't have such a workflow in the actions repo. It would be great if we did, but it's easier to validate it here. So I wish to get this working together with @VladNastase and whoever else may help and then move it to the actions repo to be used globally.

gabrielmocanu commented 1 year ago

Tested it here: https://github.com/test-org-oeh/operating-systems/pull/3