Skip to content

Commit

Permalink
Specify paths in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
lucjaulmes committed May 7, 2021
1 parent b1da1af commit d6b206d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build_fonts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions config/fontcustom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ font_descent: 64

input:
vectors: svg

output:
fonts: academicons/fonts
css: academicons/css
preview: academicons

0 comments on commit d6b206d

Please sign in to comment.