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
|
# Diff RSS template against Hugo default, make sure only differences are intentional
|
||||||
- rss: |
|
- 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
|
# Start Ruby server for dithering images
|
||||||
- dither: |
|
- dither: |
|
||||||
true
|
cd bin/dither
|
||||||
|
sudo bundle install
|
||||||
|
ROOT=~/davideisinger.com/content \
|
||||||
|
KEY=~/secret.key \
|
||||||
|
bundle exec rackup -p 4567 -D
|
||||||
|
|
||||||
# Build site
|
# Build site
|
||||||
- hugo: |
|
- 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
|
# Sync files to production server
|
||||||
- deploy: |
|
- deploy: |
|
||||||
@@ -52,7 +63,7 @@ tasks:
|
|||||||
-v \
|
-v \
|
||||||
-r \
|
-r \
|
||||||
--delete \
|
--delete \
|
||||||
public/ \
|
public/* \
|
||||||
www-data@$SERVER_IP:/var/www/davideisinger.com \
|
www-data@$SERVER_IP:/var/www/davideisinger.com \
|
||||||
2>/dev/null
|
2>/dev/null
|
||||||
set -x
|
set -x
|
||||||
|
|||||||
Reference in New Issue
Block a user