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
|
run: curl -sL https://raw.githubusercontent.com/nicoverbruggen/kobo-font-fix/main/kobofix.py -o kobofix.py
|
||||||
|
|
||||||
- name: Generate Kobo (KF) fonts
|
- 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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -33,14 +36,13 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Kobo_Readerly
|
name: Kobo_Readerly
|
||||||
path: out/ttf/KF_*.ttf
|
path: out/kf/*.ttf
|
||||||
|
|
||||||
- name: Zip TTFs for release
|
- name: Zip TTFs for release
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
cd out/ttf
|
cd out/ttf && zip -j ../../Readerly.zip *.ttf
|
||||||
zip -j ../../Readerly.zip $(ls *.ttf | grep -v '^KF_')
|
cd ../../out/kf && zip -j ../../Kobo_Readerly.zip *.ttf
|
||||||
zip -j ../../Kobo_Readerly.zip KF_*.ttf
|
|
||||||
|
|
||||||
- name: Upload release zips
|
- name: Upload release zips
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|||||||
Reference in New Issue
Block a user