-
Notifications
You must be signed in to change notification settings - Fork 681
Automatically update repo details #75
Comments
or you can setup a CI system to do it for you. |
How do I do that? Sorry I am new to programming |
For automatically updating:
For creating the node JS project, you can have a look at my repo |
Hi, Firstly, thank you so much for taking out time to write such a neat guide. It really did help a lot. I had one question, so I've tried to tinker with things and somehow I've made something. However, my website has been deployed on netlify and not on github pages. Is there a way by which I can deploy it on github-pages (aka - monteva.github.io)? |
The reason I made you choose Netlify was because it has hosting as well as CI built in. If you want to publish your site to GitHub pages, you need another CI tool that can generate your site and push it to your specified repository. I can recommend you to read this article and change your config file accordingly: https://takuti.me/note/travis-gh-pages-deployment/ |
ye use @boxdox's method 👌 |
@boxdox Thanks a lot for the help yet again. I've set up Travis CI and while I am able to install gitfolio, when I run
If I replace
However, my website gets built on Netlify everytime. What am I doing wrong? Sorry for pestering you but it'd be great if you could help me out. Cheers! @imfunniee Could you please re-open this till I manage to successfully automate my website? |
If you head over to your Travis CI log page, you can see that the language is currently set to Ruby. You need to specify the language at the top of your travis-ci config file.
This config should be sufficient. Also, you get the benefits of cron jobs in travis ci, so you can let the website update automatically. |
With the below travis config, I managed to generate the HTML/CSS files.
Since the files are built in the With With What am I doing wrong? |
At this point, I would ask you to RTFM. You're just collecting parts of code and calling it a day. You need to know how Git works and how CI like Travis integrates with Github. You should always read the documentation. Coming back to your problem. Whenever you want Github pages to show your site, you need to specify the 'branch' from which github pages will serve your site. Currently, your package.json and .travis.yml sit in the 'master' branch. In your travis config, on the last line, you have asked travis to push data to 'master' again, essentially overwriting your previous code. Remove that line. Travis will automatically push to 'gh-pages' branch (which is default for github pages branch, else you can change in repo settings). Also, you need the local_dir option, otherwise travis will copy the dist folder, but we need travis to push contents of directory, not the directory itself, so leave that option uncommented. Read the travis docs for understanding other options. |
here is my own automation for this https://github.com/satishbabariya/satishbabariya.github.io |
What you're doing is: pushing to master, overwriting stuff and then just copying project files back. This is not a good practice and defeats the purpose of using a vcs, not to mention hacky. Also, if you wish to go with what you're doing, why run |
@boxdox yeah sure |
can we close it now? |
@imfunniee Yeah, I believe the issue is resolved |
cool |
What feature should be added?
Automatically updating stars, forks, and other details.
Why should this feature be added?
To do
gitfolio update
, you need to have access to your PC, without which you cannot update your website. It will also reduce the number of times we need to manually update the website.The text was updated successfully, but these errors were encountered: