finished an initial draft of the gh pages article

This commit is contained in:
Pagwin 2022-01-21 21:51:54 -05:00
parent c5bdfe62f0
commit 81727e276a

View file

@ -1,6 +1,6 @@
---
title: "Setting up CD for this site"
description: "a brief post on how I setup github actions to automatically update this site"
description: "How I setup github actions to automatically update this site"
date: 2022-01-20
draft: true
---
@ -57,10 +57,7 @@ with:
```
## Dealing With My Stupidity(and a private ssh key)
The obvious act of stupidity if you paid attention to what I wrote is that I saved the file to `.github/website-publish.yml` instead of `.github/workflows/website-publish.yml`. Fixing that was pretty easy when I figured out what was going on. After that I then had to tweak the deploy step a bit to make rsync work properly.
✅ wrong file location
* wrong source
* wrong target
* website user not specified
* accidental deletion of /var/www/pagwin.xyz
* dumb stuff that I didn't want that I forgot I added(difficult to remove due to not knowing how hugo worked)
The obvious act of stupidity if you paid attention to what I wrote is that I saved the file to `.github/website-publish.yml` instead of `.github/workflows/website-publish.yml`. Fixing that was pretty easy when I figured out what was going on. After that I then had to tweak the deploy step a bit to make rsync work properly. I did a couple things wrong with the deploy step, one I didn't specify a username, and two I didn't specify my source directory. The source directory thing was particularly stupid as I wanted the files inside the public folder but just putting ./public gave the folder itself with the files in it then as I removed that from my vps I deleted the `/var/www/pagwin.xyz` folder which required a brief recreation of that folder. Then I setup the source correctly to get the files properly but also set the target wrong so everything would go in a folder * which was annoying but at the end of all that I had a pretty smooth setup.
## Conclusion
Overall I'm very happy I did this because it gave me a nice bit of practical understanding of how to setup github actions for future projects. I hope reading about my technical sphaghetti VPS and idiocy wasn't too boring.