Automatically update font files in downloads folder when font repos are updated
Currently we are manually pushing new ttfs to the downloads folder whenever a font is updated. We are already using CI to generate these binaries. So we should probably leverage them and automate it.
There are two ways to do it
-
Automatically pushing the font files to this repo from each font repo whenever they are updated, as part of their CI
-
A pipeline in font repo will clone this repo, add the necessary font files, create a commit and push it.
-
Advantages: Latest font files will be always available in this repo
-
Disadvantage: Whenever a font repo is updated, a commit gets added in this repo. Too easy for commit overload. Also, requires storing an SSH private key in secure variables, and hence the security issues associated with it.
-
Automatically pulling the font files using the CI of this repo
-
A pipeline gets triggered in this repo whenever a font repo is updated
-
Pipeline will pull the font files from each font repo and place it in downloads folder
-
Advantage: No commit overload and no ssh key needed
-
Disadvantage: TTF files won't be added to the repo, as they are pulled only during the CI job. So, someone cloning this repo won't get the ttf files.
Personally, I prefer the second option. I don't think we need the TTF files in the repo. They just increase the size of the repo. Also, they are anyway available as artifacts, if we ever need them.
I will open an MR with a script that does this.