-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
variables: | ||
FILES_TO_COMPRESS: "html js css ico" | ||
|
||
pages: | ||
image: alpine:latest | ||
before_script: | ||
- apk update && apk add gzip brotli | ||
script: | ||
- mkdir .public | ||
- cp -r * .public | ||
- mkdir -p .public .public/css .public/img | ||
- cp favicon.ico index.html script.min.js style.min.css .public/ | ||
- cp img/* .public/img | ||
- mv .public public | ||
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} \; | ||
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec brotli -f -k {} \; | ||
- for ext in $FILES_TO_COMPRESS; do find public -type f -name "*.$ext" -exec gzip -f -k {} \;; done | ||
- for ext in $FILES_TO_COMPRESS; do find public -type f -name "*.$ext" -exec brotli -f -k {} \;; done | ||
artifacts: | ||
paths: | ||
- public | ||
only: | ||
- master | ||
rules: | ||
- if: $CI_COMMIT_BRANCH == "master" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
python3 scripts/add-nbsp-to-images-lines.py && pandoc -f markdown+lists_without_preceding_blankline+autolink_bare_uris -t html -s index.md -o index.html -c style.css --template=scripts/template.html | ||
python3 scripts/add-nbsp-to-images-lines.py && pandoc -f markdown+lists_without_preceding_blankline+autolink_bare_uris -t html -s index.md -o index.html -c style.min.css --template=scripts/template.html | ||
python3 scripts/change-html.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.