From 6d2358ffe7193a58700e242481dc27957143aee5 Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Sun, 29 Dec 2024 21:29:19 -0700 Subject: [PATCH] feat(ci): remove meta folders --- .github/workflows/sync-docs.yaml | 1 + README.md | 2 +- scripts/sync-docs.ts | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync-docs.yaml b/.github/workflows/sync-docs.yaml index 54a4bc25..722ef397 100644 --- a/.github/workflows/sync-docs.yaml +++ b/.github/workflows/sync-docs.yaml @@ -5,6 +5,7 @@ on: paths: - 'README.md' - '.github/FUNDING.yaml' + - '.github/logo.png' branches: - master workflow_dispatch: # Allows manual triggering diff --git a/README.md b/README.md index d8a76fe1..4d42c261 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Phosphor Icons + - Phosphor is a flexible icon family for interfaces, diagrams, presentations — whatever, really. diff --git a/scripts/sync-docs.ts b/scripts/sync-docs.ts index 0735ee6b..5094fa69 100644 --- a/scripts/sync-docs.ts +++ b/scripts/sync-docs.ts @@ -8,7 +8,7 @@ const LOGO_PATH = ".github/logo.png"; const SYNC_SECTIONS = ["LOGO", "OVERVIEW", "LINKS"]; const SYNC_FILES: Array> = [ [FUNDING_PATH, ".github/FUNDING.yml"], - LOGO_PATH, + [LOGO_PATH, "meta"], ]; // These files will be replaced in the target repository (function main() { @@ -40,7 +40,7 @@ const SYNC_FILES: Array> = [ for (const alias of file) { const targetPath = path.resolve(__dirname, `../../${targetRepo}/${alias}`); if (fs.existsSync(targetPath)) { - fs.rmSync(targetPath); + fs.rmSync(targetPath, { recursive: true }); } } }