1093a7dbaSopenharmony_ci#!/bin/bash
2093a7dbaSopenharmony_ci
3093a7dbaSopenharmony_ci# Until Sans and Serif are split into two repos on https://github.com/notofonts 
4093a7dbaSopenharmony_ci# we have everything in this single repo https://github.com/googlefonts/noto-cjk
5093a7dbaSopenharmony_ci# This script will make a new release for Serif. To do a Sans release use gh-release-noto-cjk-sans.sh
6093a7dbaSopenharmony_ci# Requires GitHub CLI (https://github.com/cli/cli/releases)
7093a7dbaSopenharmony_ci
8093a7dbaSopenharmony_ciVERSION=2.002
9093a7dbaSopenharmony_ci
10093a7dbaSopenharmony_ciecho "Download individual assets from below or through the download [guide](https://github.com/googlefonts/noto-cjk/tree/main/Serif#downloading-noto-serif-cjk)." > Serif/git-release-notes.md
11093a7dbaSopenharmony_ci
12093a7dbaSopenharmony_cicd Serif
13093a7dbaSopenharmony_cizip -r -v 02_NotoSerifCJK-OTF-VF.zip Variable/OTF Variable/OTC/NotoSerifCJK-VF.otf.ttc LICENSE --exclude "*.zip" "*.DS_Store"
14093a7dbaSopenharmony_cizip -r -v 03_NotoSerifCJK-TTF-VF.zip Variable/TTF Variable/OTC/NotoSerifCJK-VF.ttf.ttc LICENSE --exclude "*.zip" "*.DS_Store"
15093a7dbaSopenharmony_cizip -r -v 04_NotoSerifCJKOTC.zip OTC LICENSE --exclude "*.zip" "*.DS_Store" "OTC/NotoSerifCJK.ttc"
16093a7dbaSopenharmony_cizip -r -v 05_NotoSerifCJKOTF.zip OTF LICENSE --exclude "*.zip" "*.DS_Store"
17093a7dbaSopenharmony_cizip -r -v 06_NotoSerifCJKSubsetOTF.zip SubsetOTF LICENSE --exclude "*.zip" "*.DS_Store"
18093a7dbaSopenharmony_cizip -r -v 07_NotoSerifCJKjp.zip OTF/Japanese LICENSE --exclude "*.zip" "*.DS_Store"
19093a7dbaSopenharmony_cizip -r -v 08_NotoSerifCJKkr.zip OTF/Korean LICENSE --exclude "*.zip" "*.DS_Store"
20093a7dbaSopenharmony_cizip -r -v 09_NotoSerifCJKsc.zip OTF/SimplifiedChinese LICENSE --exclude "*.zip" "*.DS_Store"
21093a7dbaSopenharmony_cizip -r -v 10_NotoSerifCJKtc.zip OTF/TraditionalChinese LICENSE --exclude "*.zip" "*.DS_Store"
22093a7dbaSopenharmony_cizip -r -v 11_NotoSerifCJKhk.zip OTF/TraditionalChineseHK LICENSE --exclude "*.zip" "*.DS_Store"
23093a7dbaSopenharmony_cizip -r -v 12_NotoSerifJP.zip SubsetOTF/JP LICENSE --exclude "*.zip" "*.DS_Store"
24093a7dbaSopenharmony_cizip -r -v 13_NotoSerifKR.zip SubsetOTF/KR LICENSE --exclude "*.zip" "*.DS_Store"
25093a7dbaSopenharmony_cizip -r -v 14_NotoSerifSC.zip SubsetOTF/SC LICENSE --exclude "*.zip" "*.DS_Store"
26093a7dbaSopenharmony_cizip -r -v 15_NotoSerifTC.zip SubsetOTF/TC LICENSE --exclude "*.zip" "*.DS_Store"
27093a7dbaSopenharmony_cizip -r -v 16_NotoSerifHK.zip SubsetOTF/HK LICENSE --exclude "*.zip" "*.DS_Store"
28093a7dbaSopenharmony_ci
29093a7dbaSopenharmony_ci# The Serif SuperOTC is too large to store on GitHub without LFS so we expect it to 
30093a7dbaSopenharmony_ci# be created locally first and then we can attach it as a release asset
31093a7dbaSopenharmony_cicp SuperOTC/NotoSerifCJK.ttc.zip 01_NotoSerifCJK.ttc.zip
32093a7dbaSopenharmony_ci
33093a7dbaSopenharmony_cigh release create Serif${VERSION} --title "Noto Serif CJK Version ${VERSION} (OTF, OTC, Super OTC, Subset OTF, Variable OTF/TTF)" -F git-release-notes.md --target main \
34093a7dbaSopenharmony_ci        '01_NotoSerifCJK.ttc.zip#Static Super OTC' \
35093a7dbaSopenharmony_ci        '02_NotoSerifCJK-OTF-VF.zip#All Variable OTF/OTC' \
36093a7dbaSopenharmony_ci        '03_NotoSerifCJK-TTF-VF.zip#All Variable TTF/OTC' \
37093a7dbaSopenharmony_ci        '04_NotoSerifCJKOTC.zip#All Static Language Specific OTCs' \
38093a7dbaSopenharmony_ci        '05_NotoSerifCJKOTF.zip#All Static Language Specific OTFs' \
39093a7dbaSopenharmony_ci        '06_NotoSerifCJKSubsetOTF.zip#All Static Region Specific Subset OTFs' \
40093a7dbaSopenharmony_ci        '07_NotoSerifCJKjp.zip#Language Specific OTFs Japanese (日本語)' \
41093a7dbaSopenharmony_ci        '08_NotoSerifCJKkr.zip#Language Specific OTFs Korean (한국어)' \
42093a7dbaSopenharmony_ci        '09_NotoSerifCJKsc.zip#Language Specific OTFs Simplified Chinese (简体中文)' \
43093a7dbaSopenharmony_ci        '10_NotoSerifCJKtc.zip#Language Specific OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \
44093a7dbaSopenharmony_ci        '11_NotoSerifCJKhk.zip#Language Specific OTFs Traditional Chinese — Hong Kong (繁體中文—香港)' \
45093a7dbaSopenharmony_ci        '12_NotoSerifJP.zip#Region Specific Subset OTFs Japanese (日本語)' \
46093a7dbaSopenharmony_ci        '13_NotoSerifKR.zip#Region Specific Subset OTFs Korean (한국어)' \
47093a7dbaSopenharmony_ci        '14_NotoSerifSC.zip#Region Specific Subset OTFs Simplified Chinese (简体中文)' \
48093a7dbaSopenharmony_ci        '15_NotoSerifTC.zip#Region Specific Subset OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \
49093a7dbaSopenharmony_ci        '16_NotoSerifHK.zip#Region Specific Subset OTFs Traditional Chinese — Hong Kong (繁體中文—香港)'
50093a7dbaSopenharmony_ci
51093a7dbaSopenharmony_cirm *.zip
52093a7dbaSopenharmony_cirm git-release-notes.md
53093a7dbaSopenharmony_cicd ..
54