migrate to nix flake
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -xeuo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)/jakstys.lt"
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
|
||||
hugo --cleanDestinationDir --printPathWarnings --panicOnWarning --log
|
||||
# https://github.com/gohugoio/hugo/issues/8734
|
||||
@@ -8,12 +8,10 @@ hugo --cleanDestinationDir --printPathWarnings --panicOnWarning --log
|
||||
# --buildDrafts --config config.yaml,debugconfig.yaml -d public/zz
|
||||
|
||||
cd public
|
||||
zopfli=$(bazel run --ui_event_filters=-info,-stdout,-stderr --noshow_progress --run_under=echo @zopfli//:zopfli)
|
||||
brotli=$(bazel run --ui_event_filters=-info,-stdout,-stderr --noshow_progress --run_under=echo @brotli//:brotli)
|
||||
|
||||
find . \
|
||||
-name '*.html' -or \
|
||||
-name '*.xml' -or \
|
||||
-name '*.txt' -or \
|
||||
-name '*.css' -or \
|
||||
-name '*.map' | parallel --eta "$zopfli {} && $brotli {}"
|
||||
-name '*.map' | parallel --eta "zopfli {} && brotli {}"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -xeuo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)/jakstys.lt"
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
|
||||
scripts/build
|
||||
scripts/upload
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -xeuo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)/jakstys.lt"
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
|
||||
rsync --info=progress2 -a --partial --delete public/ jakstys.lt:/data/public_html/
|
||||
rsync --info=progress2 -a --partial --delete public/ beta.jakstys.lt:/var/www/jakstys.lt/
|
||||
|
||||
Reference in New Issue
Block a user