Change how we get git info
This commit is contained in:
11
.build.yml
11
.build.yml
@@ -26,9 +26,9 @@ tasks:
|
||||
npx cspell "content/**/*.md"
|
||||
- rss: |
|
||||
curl -s https://raw.githubusercontent.com/gohugoio/hugo/refs/tags/v$HUGO_VERSION/tpl/tplimpl/embedded/templates/_default/rss.xml \
|
||||
| diff - ./themes/v2/layouts/_default/rss.xml \
|
||||
| wc -l \
|
||||
| grep 7
|
||||
| diff - ./themes/v2/layouts/_default/rss.xml \
|
||||
| wc -l \
|
||||
| grep 7
|
||||
- dither: |
|
||||
cd bin/dither
|
||||
sudo bundle install
|
||||
@@ -36,8 +36,9 @@ tasks:
|
||||
KEY=~/secret.key \
|
||||
bundle exec rackup -p 4567 -D
|
||||
- hugo: |
|
||||
source bin/get-last-commit.sh
|
||||
DITHER_SERVER=http://localhost:4567 hugo --minify
|
||||
HUGO_PARAMS_GIT_COMMIT=$(git rev-parse HEAD) \
|
||||
DITHER_SERVER=http://localhost:4567 \
|
||||
hugo --minify
|
||||
find public -name "*.enc" -type f -delete
|
||||
- deploy: |
|
||||
if [ "$(git rev-parse main)" != "$(git rev-parse HEAD)" ]; then \
|
||||
|
||||
Reference in New Issue
Block a user