From d6b206dc18478309981035c305f3530ef984450f Mon Sep 17 00:00:00 2001 From: LucJaulmes Date: Fri, 7 May 2021 18:24:00 +0200 Subject: [PATCH] Specify paths in config file --- .github/workflows/build_fonts.yml | 10 ++-------- config/fontcustom.yml | 5 +++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_fonts.yml b/.github/workflows/build_fonts.yml index 874b49d..bc3f9ec 100644 --- a/.github/workflows/build_fonts.yml +++ b/.github/workflows/build_fonts.yml @@ -27,15 +27,9 @@ jobs: - name: Build fonts run: fontcustom compile - - name: Adjust paths to mimic previous architecture + - name: Add minified css run: | - cd academicons - mkdir css fonts - mv academicons.css css/ - mv academicons.* fonts/ - sed -i 's`url("./academicons\.`url("./fonts/academicons.`g' academicons-preview.html - sed -i 's`url("./academicons\.`url("../fonts/academicons.`g' css/academicons.css - yui-compressor -o css/academicons.min.css css/academicons.css + yui-compressor -o academicons/css/academicons.min.css academicons/css/academicons.css - name: Archive production artifacts uses: actions/upload-artifact@v2 diff --git a/config/fontcustom.yml b/config/fontcustom.yml index f24a1dd..3c6d382 100644 --- a/config/fontcustom.yml +++ b/config/fontcustom.yml @@ -16,3 +16,8 @@ font_descent: 64 input: vectors: svg + +output: + fonts: academicons/fonts + css: academicons/css + preview: academicons