Skip to content

Commit

Permalink
feat(ci): remove meta folders
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Dec 30, 2024
1 parent 06b1a86 commit 60ffcdb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/sync-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- 'README.md'
- '.github/FUNDING.yaml'
- '.github/logo.png'
branches:
- master
workflow_dispatch: # Allows manual triggering
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Phosphor Icons

<!-- BEGIN_LOGO -->
<img src="/.github/logo.png" width="128" align="right" />
<!-- END_LOGO -->


<!-- BEGIN_OVERVIEW -->
Phosphor is a flexible icon family for interfaces, diagrams, presentations — whatever, really.

Expand Down
4 changes: 2 additions & 2 deletions scripts/sync-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const LOGO_PATH = ".github/logo.png";
const SYNC_SECTIONS = ["LOGO", "OVERVIEW", "LINKS"];
const SYNC_FILES: Array<string | Array<string>> = [
[FUNDING_PATH, ".github/FUNDING.yml"],
LOGO_PATH,
[LOGO_PATH, "meta"],
]; // These files will be replaced in the target repository

(function main() {
Expand Down Expand Up @@ -40,7 +40,7 @@ const SYNC_FILES: Array<string | Array<string>> = [
for (const alias of file) {
const targetPath = path.resolve(__dirname, `../../${targetRepo}/${alias}`);
if (fs.existsSync(targetPath)) {
fs.rmSync(targetPath);
fs.rmSync(targetPath, { recursive: true });
}
}
}
Expand Down

0 comments on commit 60ffcdb

Please sign in to comment.