From 4a4779a7e77ed3a6165a528fcb66c24bd8ccc130 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 10 Sep 2025 08:10:01 +0800 Subject: [PATCH] enhance(ci): improve release workflow with concurrency control and updated dependencies - Add concurrency control to prevent multiple simultaneous releases - Upgrade softprops/action-gh-release from v1 to v2 for better reliability - Add docs/ directory to .gitignore to exclude documentation build artifacts --- .github/workflows/release.yml | 6 +++++- .gitignore | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 334c3e9..72b2a9b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,10 @@ on: permissions: contents: write +concurrency: + group: release-${{ github.ref_name }} + cancel-in-progress: true + jobs: release: runs-on: ${{ matrix.os }} @@ -257,7 +261,7 @@ jobs: fi - name: Upload Release Assets - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.ref_name }} name: CC Switch ${{ github.ref_name }} diff --git a/.gitignore b/.gitignore index 2ce1d48..8c403ad 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ release/ .npmrc CLAUDE.md AGENTS.md +docs/