Skip to content

Commit

Permalink
Export two artifacts: sources and fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Jul 16, 2024
1 parent d1c9560 commit 70fc9ec
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ jobs:
- name: Export Fontra and UFO sources and build fonts
run: ./export_and_build.sh

- name: Storing Sources Fontra
- name: Storing Font Sources
uses: actions/upload-artifact@v4
with:
name: NotoCJKVarCo_SourcesAndBinaries
path: build
name: NotoCJKVarCo_Sources
path: build/sources

- name: Storing Font Binaries
uses: actions/upload-artifact@v4
with:
name: NotoCJKVarCo_Fonts
path: build/fonts
24 changes: 12 additions & 12 deletions export_and_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ set -x # echo commands


mkdir -p build
mkdir -p build/fontra
mkdir -p build/ufo
mkdir -p build/otf-varc
mkdir -p build/ttf-varc
mkdir -p build/otf
mkdir -p build/ttf
mkdir -p build/sources/fontra
mkdir -p build/sources/ufo
mkdir -p build/fonts/otf-varc
mkdir -p build/fonts/ttf-varc
mkdir -p build/fonts/otf
mkdir -p build/fonts/ttf

fontra-copy notosanscjksc.rcjk build/fontra/notosanscjksc.fontra
fontra-copy notoserifcjkjp.rcjk build/fontra/notoserifcjkjp.fontra
fontra-copy notosanscjksc.rcjk build/sources/fontra/notosanscjksc.fontra
fontra-copy notoserifcjkjp.rcjk build/sources/fontra/notoserifcjkjp.fontra

fontra-copy notosanscjksc.rcjk build/ufo/notosanscjksc.designspace
fontra-copy notoserifcjkjp.rcjk build/ufo/notoserifcjkjp.designspace
fontra-copy notosanscjksc.rcjk build/sources/ufo/notosanscjksc.designspace
fontra-copy notoserifcjkjp.rcjk build/sources/ufo/notoserifcjkjp.designspace

fontra-workflow notosanscjksc.yaml --output-dir build --continue-on-error
fontra-workflow notoserifcjkjp.yaml --output-dir build --continue-on-error
fontra-workflow notosanscjksc.yaml --output-dir build/fonts --continue-on-error
fontra-workflow notoserifcjkjp.yaml --output-dir build/fonts --continue-on-error

0 comments on commit 70fc9ec

Please sign in to comment.