ImperialCollegeLondon / intermediate_grad_school_git_course

Intermediate Git and GitHub for Effective Collaboration
https://imperialcollegelondon.github.io/intermediate_grad_school_git_course/
Other
3 stars 1 forks source link

Change to using GitHub Actions for deployment #68

Closed alexdewar closed 1 month ago

alexdewar commented 1 month ago

We're currently using the legacy approach where content in the gh-pages branch is used for GitHub Pages. Nowadays, you can just use a GitHub Action, which has various advantages, including that you can include extra steps in your deployment.

AdrianDAlessandro commented 1 month ago

Will this require changing our default branch from gh-pages to something like main?

alexdewar commented 1 month ago

I only just noticed that this won't work because we don't have a branch called main... I can either change the workflow to target the gh-pages branch or we can make a new main branch. I don't mind either way, but I'm inclined to the former.

alexdewar commented 1 month ago

But in answer to your question, no, we should be able to leave things the same.

alexdewar commented 1 month ago

I thought I was commenting on the PR here. Oops.