~scolby33/scolbyblog

610d2d0981742e37040b43f744a8f384e7501872 — Scott Colby 8 months ago 176adc3
Touch content files with their git commit time.

This will keep the last modified times correct.
1 files changed, 5 insertions(+), 0 deletions(-)

M .build.yml
M .build.yml => .build.yml +5 -0
@@ 27,6 27,11 @@ tasks:
      patch markdown/extensions/toc.py ~/scolbyblog/toc.patch
  - build: |
      cd scolbyblog
      git ls-tree -r -z -name-only HEAD content/ \
        | xargs -0 -I {} -R 2 -- \
          git log --date='format:%Y%m%d%H%M.%S' \
            --format='format:%ad%x00{}%x00' -1 -- {} \
        | xargs -0 -n 2 -- touch -t
      pelican --fatal warnings --settings publishconf.py
      tar -czvf output.tar.gz output
  - check-branch: |