From cb18e7846f08f6389312c89610b8b3541604f74c Mon Sep 17 00:00:00 2001 From: redatman Date: Sun, 21 Jul 2024 00:40:56 +0800 Subject: [PATCH 1/2] Refactor: Rename `create-release` workflow to `release` The workflow that creates releases has been renamed from `create-release` to `release` for consistency and clarity. This change ensures that the workflow name accurately reflects its purpose. --- .github/workflows/{create-release.yaml => release.yaml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{create-release.yaml => release.yaml} (99%) diff --git a/.github/workflows/create-release.yaml b/.github/workflows/release.yaml similarity index 99% rename from .github/workflows/create-release.yaml rename to .github/workflows/release.yaml index 0f21fa3..6c30862 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/release.yaml @@ -6,7 +6,7 @@ on: types: [closed] jobs: - create-release: + release: if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master' runs-on: ubuntu-latest From 81d52ca20c691ed9e1bf0aa61a87bed0334302f1 Mon Sep 17 00:00:00 2001 From: redatman Date: Sun, 21 Jul 2024 00:41:06 +0800 Subject: [PATCH 2/2] feat: Exclude unnecessary files from package Exclude image files, test files, and Sublime Text project files from the package to reduce the size and complexity of the distribution. This makes the package more lightweight and easier to use. --- .gitattributes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.gitattributes b/.gitattributes index c80f202..87216aa 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,3 +18,18 @@ # # Set the merge tool for certain file types # *.txt merge= # *.json merge= + +# Exclude all image files from the package +*.png export-ignore +*.jpg export-ignore +*.jpeg export-ignore +*.gif export-ignore +*.svg export-ignore + +# Exclude test files and directories from the package +tests/* export-ignore +test/* export-ignore + +# Exclude Sublime Text project and workspace files from the package +*.sublime-project export-ignore +*.sublime-workspace export-ignore