skeleton build script to deploy to shockrah.xyz :D

This commit is contained in:
shockrah 2020-10-26 00:51:40 -07:00
parent 7002f8ec26
commit ff9ded02a2
2 changed files with 20 additions and 0 deletions

10
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,10 @@
image: shockrah/website:latest
variables:
SSH_PASS: $VPS_PASS
deploy:
stage: build
script:
- bash ./build.sh
- ls -R .mirror

10
build.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# First scaffold
gensite -s
# Second root pages/resources
for f in pages/*.md; do gensite -r $f;done
for f in root/*; do gensite -R $f ;done
# Third the posts
for post in posts/*.md; do gensite -p $f;done
# Finally the notes
for note in notes/*.md; do gensite -P $f;done