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 Sans. To do a Serif release use gh-release-noto-cjk-serif.sh
6093a7dbaSopenharmony_ci# Requires GitHub CLI (https://github.com/cli/cli/releases)
7093a7dbaSopenharmony_ci
8093a7dbaSopenharmony_ciVERSION=2.004
9093a7dbaSopenharmony_ci
10093a7dbaSopenharmony_ciecho "Download individual assets from below or through the download [guide](https://github.com/googlefonts/noto-cjk/tree/main/Sans#downloading-noto-sans-cjk)." > Sans/git-release-notes.md
11093a7dbaSopenharmony_ci
12093a7dbaSopenharmony_cicd Sans
13093a7dbaSopenharmony_cizip -r -v 01_NotoSansCJK-OTF-VF.zip Variable/OTF Variable/OTC/NotoSansCJK-VF.otf.ttc LICENSE --exclude "*.zip" "*.DS_Store"
14093a7dbaSopenharmony_cizip -r -v 02_NotoSansCJK-TTF-VF.zip Variable/TTF Variable/OTC/NotoSansCJK-VF.ttf.ttc LICENSE --exclude "*.zip" "*.DS_Store"
15093a7dbaSopenharmony_cizip -j -r -v 03_NotoSansCJK-OTC.zip OTC LICENSE --exclude "*.zip" "*.DS_Store" "OTC/NotoSansCJK.ttc"
16093a7dbaSopenharmony_cizip -r -v 04_NotoSansCJK-OTF.zip OTF LICENSE --exclude "*.zip" "*.DS_Store"
17093a7dbaSopenharmony_cizip -r -v 05_NotoSansCJK-SubsetOTF.zip SubsetOTF LICENSE --exclude "*.zip" "*.DS_Store"
18093a7dbaSopenharmony_cizip -j -r -v 06_NotoSansCJKjp.zip OTF/Japanese LICENSE --exclude "*.zip" "*.DS_Store"
19093a7dbaSopenharmony_cizip -j -r -v 07_NotoSansCJKkr.zip OTF/Korean LICENSE --exclude "*.zip" "*.DS_Store"
20093a7dbaSopenharmony_cizip -j -r -v 08_NotoSansCJKsc.zip OTF/SimplifiedChinese LICENSE --exclude "*.zip" "*.DS_Store"
21093a7dbaSopenharmony_cizip -j -r -v 09_NotoSansCJKtc.zip OTF/TraditionalChinese LICENSE --exclude "*.zip" "*.DS_Store"
22093a7dbaSopenharmony_cizip -j -r -v 10_NotoSansCJKhk.zip OTF/TraditionalChineseHK LICENSE --exclude "*.zip" "*.DS_Store"
23093a7dbaSopenharmony_cizip -j -r -v 11_NotoSansMonoCJKjp.zip Mono/NotoSansMonoCJKjp* LICENSE --exclude "*.zip" "*.DS_Store"
24093a7dbaSopenharmony_cizip -j -r -v 12_NotoSansMonoCJKkr.zip Mono/NotoSansMonoCJKkr* LICENSE --exclude "*.zip" "*.DS_Store"
25093a7dbaSopenharmony_cizip -j -r -v 13_NotoSansMonoCJKsc.zip Mono/NotoSansMonoCJKsc* LICENSE --exclude "*.zip" "*.DS_Store"
26093a7dbaSopenharmony_cizip -j -r -v 14_NotoSansMonoCJKtc.zip Mono/NotoSansMonoCJKtc* LICENSE --exclude "*.zip" "*.DS_Store"
27093a7dbaSopenharmony_cizip -j -r -v 15_NotoSansMonoCJKhk.zip Mono/NotoSansMonoCJKhk* LICENSE --exclude "*.zip" "*.DS_Store"
28093a7dbaSopenharmony_cizip -j -r -v 16_NotoSansJP.zip SubsetOTF/JP LICENSE --exclude "*.zip" "*.DS_Store"
29093a7dbaSopenharmony_cizip -j -r -v 17_NotoSansKR.zip SubsetOTF/KR LICENSE --exclude "*.zip" "*.DS_Store"
30093a7dbaSopenharmony_cizip -j -r -v 18_NotoSansSC.zip SubsetOTF/SC LICENSE --exclude "*.zip" "*.DS_Store"
31093a7dbaSopenharmony_cizip -j -r -v 19_NotoSansTC.zip SubsetOTF/TC LICENSE --exclude "*.zip" "*.DS_Store"
32093a7dbaSopenharmony_cizip -j -r -v 20_NotoSansHK.zip SubsetOTF/HK LICENSE --exclude "*.zip" "*.DS_Store"
33093a7dbaSopenharmony_ci
34093a7dbaSopenharmony_cigh release create Sans${VERSION} --title "Noto Sans CJK Version ${VERSION} (OTF, OTC, Super OTC, Subset OTF, Variable OTF/TTF)" -F git-release-notes.md --target main \
35093a7dbaSopenharmony_ci        '01_NotoSansCJK-OTF-VF.zip#All Variable OTF/OTC' \
36093a7dbaSopenharmony_ci        '02_NotoSansCJK-TTF-VF.zip#All Variable TTF/OTC' \
37093a7dbaSopenharmony_ci        '03_NotoSansCJK-OTC.zip#All Static Language Specific OTCs' \
38093a7dbaSopenharmony_ci        '04_NotoSansCJK-OTF.zip#All Static Language Specific OTFs' \
39093a7dbaSopenharmony_ci        '05_NotoSansCJK-SubsetOTF.zip#All Static Region Specific Subset OTFs' \
40093a7dbaSopenharmony_ci        '06_NotoSansCJKjp.zip#Language Specific OTFs Japanese (日本語)' \
41093a7dbaSopenharmony_ci        '07_NotoSansCJKkr.zip#Language Specific OTFs Korean (한국어)' \
42093a7dbaSopenharmony_ci        '08_NotoSansCJKsc.zip#Language Specific OTFs Simplified Chinese (简体中文)' \
43093a7dbaSopenharmony_ci        '09_NotoSansCJKtc.zip#Language Specific OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \
44093a7dbaSopenharmony_ci        '10_NotoSansCJKhk.zip#Language Specific OTFs Traditional Chinese — Hong Kong (繁體中文—香港)' \
45093a7dbaSopenharmony_ci        '11_NotoSansMonoCJKjp.zip#Language Specific Monospace OTFs Japanese (日本語)' \
46093a7dbaSopenharmony_ci        '12_NotoSansMonoCJKkr.zip#Language Specific Monospace OTFs Korean (한국어)' \
47093a7dbaSopenharmony_ci        '13_NotoSansMonoCJKsc.zip#Language Specific Monospace OTFs Simplified Chinese (简体中文)' \
48093a7dbaSopenharmony_ci        '14_NotoSansMonoCJKtc.zip#Language Specific Monospace OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \
49093a7dbaSopenharmony_ci        '15_NotoSansMonoCJKhk.zip#Language Specific Monospace OTFs Traditional Chinese — Hong Kong (繁體中文—香港)' \
50093a7dbaSopenharmony_ci        '16_NotoSansJP.zip#Region Specific Subset OTFs Japanese (日本語)' \
51093a7dbaSopenharmony_ci        '17_NotoSansKR.zip#Region Specific Subset OTFs Korean (한국어)' \
52093a7dbaSopenharmony_ci        '18_NotoSansSC.zip#Region Specific Subset OTFs Simplified Chinese (简体中文)' \
53093a7dbaSopenharmony_ci        '19_NotoSansTC.zip#Region Specific Subset OTFs Traditional Chinese — Taiwan (繁體中文—臺灣)' \
54093a7dbaSopenharmony_ci        '20_NotoSansHK.zip#Region Specific Subset OTFs Traditional Chinese — Hong Kong (繁體中文—香港)'
55093a7dbaSopenharmony_ci
56093a7dbaSopenharmony_cirm *.zip
57093a7dbaSopenharmony_cirm git-release-notes.md
58093a7dbaSopenharmony_cicd ..
59