This commit is contained in:
14
.build.yml
14
.build.yml
@@ -37,19 +37,11 @@ tasks:
|
||||
|
||||
# Start Ruby server for dithering images
|
||||
- dither: |
|
||||
cd bin/dither
|
||||
sudo bundle install
|
||||
ROOT=~/davideisinger.com/content \
|
||||
KEY=~/secret.key \
|
||||
bundle exec rackup -p 4567 -D
|
||||
true
|
||||
|
||||
# Build site
|
||||
- hugo: |
|
||||
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
|
||||
./bin/build
|
||||
|
||||
# Sync files to production server
|
||||
- deploy: |
|
||||
@@ -63,7 +55,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