From c5ddeb1d77d8f640f9427b077cc6a3e50ea4414d Mon Sep 17 00:00:00 2001 From: Alexsander Falcucci Date: Thu, 19 Sep 2024 19:35:29 +0200 Subject: [PATCH] chore: consolidate font handling logic across codebase - remove `monaspace` from the list of fonts - add a conditional statement to handle `monaspace` font download url --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f5bb2a..d129ede 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,7 +93,6 @@ jobs: "FiraCode" "ProFont" "CascadiaCode" - "Monaspace" "Noto" ) if [[ $RUNNER_OS == "macOS" ]]; then @@ -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"