BrodieRobertson / BrodiesWebsite

My personal blog written in static HTML, putting that formal education to good use.
7 stars 3 forks source link

Automate deployment #5

Closed kolaczyn closed 1 year ago

kolaczyn commented 3 years ago

You can use GitHub actions to SSH into your VPS and update the website on each commit to the master branch.
And it's very easy to setup, the steps are basically:

I've recently done something very similar, you can see the workflow file here.

This way, you just have to push the code to GitHub, and your site should update in less than a minute.
I can make a pull request to help you if you're interested