Compare commits

..

No commits in common. "225e597060dd2deaac5c56cc70849482e0e3a33e" and "3238b9cfaa707ecedd4c9a268d3f9a54e68e5d31" have entirely different histories.

3 changed files with 30 additions and 0 deletions

View File

@ -12,6 +12,7 @@ steps:
from_secret: user from_secret: user
SSH_KEY: SSH_KEY:
from_secret: ssh_key from_secret: ssh_key
REPO: https://git.pizzawednesday.club/ktyl/period3.xyz
DEST: gemini/content DEST: gemini/content
commands: commands:

8
deploy.sh Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
repo="$1"
deploypath="$HOME/gemini/content"
sourcepath="content"
[[ -d $deploypath ]] && rm -r $deploypath
cp -r $sourcepath $deploypath

21
makefile Normal file
View File

@ -0,0 +1,21 @@
.DEFAULT_GOAL := $(SITE)
SITE = period3.xyz
HOST = pluto
HOST_DIR = $(HOST):~
CONTENT = content/
DEPLOY = deploy.sh
# to deploy the site we copy a deploy script and the site
# contents over to the remote host, then run the deploy script
# which is used to place the site files in the hosted root folder
# we then delete the built site directory locally to avoid accidentally
# caching stuff for future deploys
deploy: $(CONTENT)
rsync -rP $(CONTENT) $(SITE)
rsync -P $(DEPLOY) $(HOST_DIR)
rsync -rP $(SITE) $(HOST_DIR)
ssh $(HOST) "bash -s" < $(DEPLOY)
rm -r $(SITE)