add a release script
This commit is contained in:
parent
e4d3ce4695
commit
d9bc61848d
17
scripts/release
Executable file
17
scripts/release
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -xeuo pipefail
|
||||
cd "$(git rev-parse --show-toplevel)/jakstys.lt"
|
||||
|
||||
rm -fr public
|
||||
hugo
|
||||
|
||||
cd public
|
||||
zopfli=$(bazel run --run_under=echo @zopfli//:zopfli)
|
||||
brotli=$(bazel run --run_under=echo @brotli//:brotli)
|
||||
|
||||
find . \
|
||||
-name '*.html' -or \
|
||||
-name '*.xml' -or \
|
||||
-name '*.txt' -or \
|
||||
-name '*.css' -or \
|
||||
-name '*.map' | parallel --bar "$zopfli {} && $brotli {}"
|
Loading…
Reference in New Issue
Block a user