From fac48554d9fd927afecb5dd2340e764e4d975e2b Mon Sep 17 00:00:00 2001 From: Vedansh Date: Fri, 21 Feb 2025 22:17:55 +0530 Subject: [PATCH] fix: optimize and cleanup everything (#30) --- .github/template.md | 0 .github/workflows/ci.yml | 37 +++++++++++----------- .github/workflows/deploy.yml | 1 + .github/workflows/docker.yml | 6 +--- .github/workflows/mirror.yml | 4 +-- .gitignore | 3 +- .github/CONTRIBUTING.md => CONTRIBUTING.md | 0 LICENSE | 2 +- README.md | 2 +- .github/SECURITY.md => SECURITY.md | 0 10 files changed, 25 insertions(+), 30 deletions(-) create mode 100644 .github/template.md rename .github/CONTRIBUTING.md => CONTRIBUTING.md (100%) rename .github/SECURITY.md => SECURITY.md (100%) diff --git a/.github/template.md b/.github/template.md new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 086d4b0..99f2d20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,19 +1,18 @@ name: CI / Bundle Icons on: - schedule: - - cron: '0 0 * * 0' push: - branches: "master" + tags: ['**'] + branches: ["master"] workflow_dispatch: - + jobs: bundle-svg-files: - runs-on: ${{ matrix.os }} + runs-on: macos-latest strategy: matrix: - os: [macos-latest, ubuntu-latest, windows-latest] - node: [18.x, 19.x, 20.x, 21.x, 22.x] + node: [18.x, 20.x, 22.x] # Only LTS versions + steps: - name: Checkout Icons uses: actions/checkout@v4 @@ -24,22 +23,22 @@ jobs: node-version: ${{ matrix.node }} - name: Create Directory - run: mkdir bundled_icons + run: mkdir -p bundled_icons - - name: Find and copy SVG files - run: | - ls -al - find . -name "*.svg" -exec cp {} bundle_icons/ \; - shell: bash + - name: Find and Copy SVG Files + run: find . -name "*.svg" -exec cp {} bundled_icons/ \; - - name: Verify SVG files - run: ls bundled_icons + - name: Verify Copied SVG Files + run: ls -al bundled_icons - - name: Upload bundled SVGs as artifact + - name: Generate Checksums + run: | + cd bundled_icons + md5 *.svg > checksum.md5 + cat checksum.md5 # Print checksum for debugging + + - name: Upload Bundled SVGs as Artifact uses: actions/upload-artifact@v3 with: name: bundled_icons path: bundled_icons - - - name: Cleanup - run: echo "Job Finished" | base64 \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0257271..b891362 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -57,6 +57,7 @@ jobs: org.opencontainers.image.title=Icons org.opencontainers.image.vendor=Vedansh org.opencontainers.image.multi-platform=true + org.opencontainers.image.description=Free SVG Icons for Every Tech Framework and Programming Languages. org.opencontainers.image.source=https://github.com/offensive-vk/Icons - name: Install Cosign diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0324eee..9f7416d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,12 +1,8 @@ name: CI / Docker on: - schedule: - - cron: '0 */1 * * *' - push: - branches: ['master', '**'] pull_request: - branches: ['master', '**'] + branches: ['**'] workflow_dispatch: jobs: diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index da8e167..bd60c70 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,7 +1,5 @@ name: CI / Mirror Sync on: - schedule: - - cron: '0 0 * * *' push: branches: ['**'] workflow_dispatch: @@ -13,7 +11,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: wangchucheng/git-repo-sync@v0.1.0 + - uses: offensive-vk/auto-repo-sync@master with: target-url: ${{ secrets.TARGET_URL }} target-username: ${{ secrets.TARGET_USER }} diff --git a/.gitignore b/.gitignore index e1e195f..8a2cdb3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .vscode/ node_modules -dist/ \ No newline at end of file +dist/ +bundled_stuff \ No newline at end of file diff --git a/.github/CONTRIBUTING.md b/CONTRIBUTING.md similarity index 100% rename from .github/CONTRIBUTING.md rename to CONTRIBUTING.md diff --git a/LICENSE b/LICENSE index 9ff6197..437a794 100644 --- a/LICENSE +++ b/LICENSE @@ -121,4 +121,4 @@ express Statement of Purpose. this CC0 or use of the Work. *** -All Rights Reserved. Vedansh 2020 - Present. \ No newline at end of file +All Rights Reserved. Vedansh (@offensive-vk) 2020 - Present. diff --git a/README.md b/README.md index a466e8d..835aa29 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Free SVGs and Icons For Most Programming Languages / Frameworks / Tools / Tech Related. All SVGs are in High Quality and are suitable for Every Size. -*Each icon comes in several versions like* +*Each icon comes in several versions like -* - Original or Plain - EPS & SVG Format diff --git a/.github/SECURITY.md b/SECURITY.md similarity index 100% rename from .github/SECURITY.md rename to SECURITY.md