Ensure zips only have correct files
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -21,7 +21,10 @@ jobs:
|
||||
run: curl -sL https://raw.githubusercontent.com/nicoverbruggen/kobo-font-fix/main/kobofix.py -o kobofix.py
|
||||
|
||||
- name: Generate Kobo (KF) fonts
|
||||
run: python3 kobofix.py --preset kf out/ttf/*.ttf
|
||||
run: |
|
||||
python3 kobofix.py --preset kf out/ttf/*.ttf
|
||||
mkdir -p out/kf
|
||||
mv out/ttf/KF_*.ttf out/kf/
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -33,14 +36,13 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Kobo_Readerly
|
||||
path: out/ttf/KF_*.ttf
|
||||
path: out/kf/*.ttf
|
||||
|
||||
- name: Zip TTFs for release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
cd out/ttf
|
||||
zip -j ../../Readerly.zip $(ls *.ttf | grep -v '^KF_')
|
||||
zip -j ../../Kobo_Readerly.zip KF_*.ttf
|
||||
cd out/ttf && zip -j ../../Readerly.zip *.ttf
|
||||
cd ../../out/kf && zip -j ../../Kobo_Readerly.zip *.ttf
|
||||
|
||||
- name: Upload release zips
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
||||
Reference in New Issue
Block a user