Commit cfdfd241 authored by Sebastian Friedl's avatar Sebastian Friedl
Browse files

Create ZIP archive with fonts

parent c9064181
......@@ -21,12 +21,14 @@ build:
- echo "Build started on $(date -R)" >> BUILD
script:
- ./build.py
- ./bundle.sh
after_script:
- echo "Build finished on $(date -R)" >> BUILD
artifacts:
name: "gypt-fonts_$CI_COMMIT_SHORT_SHA"
paths:
- BUILD
- gypt-fonts.zip
expire_in: 6 hrs
tags:
- docker
#!/usr/bin/env bash
set -e
# get absolute path to root dir
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"
# clean up artifacts from previous builds
rm -f "$ROOT_DIR/gypt-fonts.zip"
# create ZIP archive with created fonts
7za a -tzip -mm=Deflate "$ROOT_DIR/gypt-fonts.zip" "$ROOT_DIR/README.md" "$ROOT_DIR/COPYING"
for style in "serif" "sans" "mono"; do
7za a -tzip -mm=Deflate "$ROOT_DIR/gypt-fonts.zip" "$ROOT_DIR/out/gypt-$style"
done
git
python3
python3-venv
p7zip-full
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment