learn-neuroimaging / hitchhackers_guide_brain

A list of tutorials and other resources useful to learn open science and neuroimaging, EEG and MEG
https://learn-neuroimaging.github.io/hitchhackers_guide_brain/
Other
114 stars 42 forks source link

[INFRA] Automatically update website when new content is added to main repo #51

Closed alexandreroutier closed 4 years ago

alexandreroutier commented 4 years ago

Hi,

MKDocs allows to deploy Wiki on GitHub pages (see https://www.mkdocs.org/user-guide/deploying-your-docs/).

We need to automate this procedure.

I can volunteer for this task :)

Alex

Remi-Gau commented 4 years ago

Awesome. :-) <3

Sounds good.

Will make sure you are admin in case you need to tweak things in the settings of the repo.

Remi-Gau commented 4 years ago

So I have been able to deply on my accout: https://remi-gau.github.io/tutorials-and-resources/programming/

But not yet on upstream it seems: https://learn-neuroimaging.github.io/tutorials-and-resources/

alexandreroutier commented 4 years ago

If you look at the details of the deployment, you will see that MkDocsc built 463a40f commit which is the latest on the master branch. :)

So, should we keep https://learn-neuroimaging.github.io/tutorials-and-resources/ for the moment ?

Remi-Gau commented 4 years ago

If you look at the details of the deployment, you will see that MkDocsc built 463a40f commit which is the latest on the master branch. :) but it did try to deploy it on a gh-pg branch, right?

So, should we keep https://learn-neuroimaging.github.io/tutorials-and-resources/ for the moment ? yeah I think that for now we can keep this one.

alexandreroutier commented 4 years ago

If you look at the details of the deployment, you will see that MkDocsc built 463a40f commit which is the latest on the master branch. :) but it did try to deploy it on a gh-pg branch, right?

Indeed. From what I understand, mkdocs gh-deploy creates a gh-pages branch on the repo. However, it is not automatically updated when a new commit appears on master. When you updated the website today, did you run mkdocs gh-deploy?

I would be interested in finding a way to automatically deploy MkDocs using Jenkins or other solutions (e.g. GitHub Actions). I have never done this before. 🙃

Remi-Gau commented 4 years ago

You are correct I simply, clone the upstream repo and did mkdocs gh-deploy. Worked super quickly.

I wonder if we can do that with Travis as this is what we are using for the markdown linter.

Would be nice to learn how to do that. :-)

alexandreroutier commented 4 years ago

To sum up the Jitsi meeting :

Remi-Gau commented 4 years ago

Added a gthub action that does this for us. :smile: