Skip to content

Commit

Permalink
chore: consolidate font handling logic across codebase
Browse files Browse the repository at this point in the history
- remove `monaspace` from the list of fonts
- add a conditional statement to handle `monaspace` font download url
  • Loading branch information
falcucci committed Sep 19, 2024
1 parent ebd7ee2 commit c5ddeb1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ jobs:
"FiraCode"
"ProFont"
"CascadiaCode"
"Monaspace"
"Noto"
)
if [[ $RUNNER_OS == "macOS" ]]; then
Expand All @@ -112,7 +111,11 @@ jobs:
for font in "${fonts[@]}"; do
ZIP_FILE="${font}${EXTENSION}"
DOWNLOAD_URL="https://github.com/ryanoasis/nerd-fonts/releases/download/${VERSION}/${ZIP_FILE}"
if [[ -f "$font" == "Monaspace" ]]; then
DOWNLOAD_URL="https://github.com/githubnext/monaspace/releases/download/v1.101/monaspace-v1.101.zip"
else
DOWNLOAD_URL="https://github.com/ryanoasis/nerd-fonts/releases/download/${VERSION}/${ZIP_FILE}"
fi
echo "Downloading and installing '$font'..."
wget --quiet "$DOWNLOAD_URL" -O "$ZIP_FILE"
unzip -oq "$ZIP_FILE" -d "$FONT_DIR"
Expand Down

0 comments on commit c5ddeb1

Please sign in to comment.