From fdcdb733219899c3e85d6853bb34659e25307861 Mon Sep 17 00:00:00 2001 From: Lars Rickert Date: Thu, 15 Aug 2024 11:55:11 +0200 Subject: [PATCH] delete icons --- .github/workflows/import-figma.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/import-figma.yml b/.github/workflows/import-figma.yml index b313e60169..27b77d7d0b 100644 --- a/.github/workflows/import-figma.yml +++ b/.github/workflows/import-figma.yml @@ -24,6 +24,11 @@ jobs: run: pnpm run build working-directory: packages/figma-utils + # delete all icons before importing them so no longer existing or renamed icons are removed + - name: Clear icons + run: rm -rfv src/assets/* + working-directory: packages/icons + - name: Import icons run: | pnpm run @sit-onyx/figma-utils import-icons -k "${{ vars.FIGMA_FILE_KEY }}" -t "${{ secrets.FIGMA_TOKEN }}" -p "${{ vars.FIGMA_ICON_PAGE_ID }}" -d "../icons/src/assets" -m "../icons/src/metadata.json"