Webweaving workflows
Posted: Fri Feb 10, 2023 10:00 am
Hi, this can be a thread for talking about workflows in updating a website, i.e. editing files on your computer and then pushing those changes to your website. To start off I'll post my situation and ask for advice.
I would love to hear how other people update their website, personally.As it stands, my current website workflow involves:
However, I find this workflow to be very tedious. SSHing is slow and sometimes I spend too much time having to wrangle Pageant for keypair authentication. Uploading files via SSH is also very slow. I use WinSCP, and the interface for that can be kind of hard to work with at times. It's also difficult to view the source code on the website like this, as I have to use WinSCP's interface as opposed to a code editor.
- Writing and/or updating source files
- Compiling them with a SSG into HTML/CSS/JS
- SSHing into my website's directory and uploading my changed files
I'm sort of avoiding Neocities because uploading an entire repository of nested directories, it can mess up BADLY, especially since all of my output HTML files have the name "index.html" for cleaner URL pathing. They tend to "collapse" the subdirectories to a single level, and overwrite all but one of the uploaded html files in doing so.
I'm considering using GitHub Actions(?), but I'm not quite sure how it works. I would like to upload my SSG's files to a GitHub repository, and then whenever it updates, it automatically compiles the website and then uploads those changes to my web host. However, I don't want to use GitHub pages, and I'm not sure how to get the resulting files onto the site. I use Namecheap's hosting for this, which comes with cPanel, and Eleventy as my SSG of choice.