This commit is contained in:
19
.build.yml
19
.build.yml
@@ -30,15 +30,26 @@ tasks:
|
||||
|
||||
# Diff RSS template against Hugo default, make sure only differences are intentional
|
||||
- rss: |
|
||||
./bin/check-rss-template
|
||||
curl -s https://raw.githubusercontent.com/gohugoio/hugo/refs/tags/v$HUGO_VERSION/tpl/tplimpl/embedded/templates/rss.xml \
|
||||
| diff - ./themes/v2/layouts/_default/rss.xml \
|
||||
| wc -l \
|
||||
| grep 7
|
||||
|
||||
# Start Ruby server for dithering images
|
||||
- dither: |
|
||||
true
|
||||
cd bin/dither
|
||||
sudo bundle install
|
||||
ROOT=~/davideisinger.com/content \
|
||||
KEY=~/secret.key \
|
||||
bundle exec rackup -p 4567 -D
|
||||
|
||||
# Build site
|
||||
- hugo: |
|
||||
./bin/build
|
||||
HUGO_PARAMS_GIT_COMMIT=$(git rev-parse HEAD) \
|
||||
DITHER_SERVER=http://localhost:4567 \
|
||||
hugo --minify
|
||||
find public -name "*.enc" -type f -delete
|
||||
find public/elsewhere -name "*.gmi" -type f -delete
|
||||
|
||||
# Sync files to production server
|
||||
- deploy: |
|
||||
@@ -52,7 +63,7 @@ tasks:
|
||||
-v \
|
||||
-r \
|
||||
--delete \
|
||||
public/ \
|
||||
public/* \
|
||||
www-data@$SERVER_IP:/var/www/davideisinger.com \
|
||||
2>/dev/null
|
||||
set -x
|
||||
|
||||
Reference in New Issue
Block a user