I have a jekyll website hosted on my own Siteground server, and i use Github pages for developpment environment.
I’m trying to automate the process so i could easily choose to sync with Github pages for developpment or build the _site folder for production.
The only thing which change between dev and production is the robots.txt file which contains
Disallow: / for Github pages dev site and
Disallow: for the production site.
I would like to know if there would be a way to use a specific robots.txt file for when i do the
jekyll build command in order to block google from indexing my staging website.
Also i’m looking for a way to be able to push to production via ftp without having to drag and drop the _site folder in Filezilla.
Thanks in advance for your help.