From 7fce4bcfcd74ca2449cc047e96d7e46316980dd5 Mon Sep 17 00:00:00 2001 From: kevin kwok <13146699620ke@gmail.com> Date: Tue, 22 Jul 2025 07:53:40 +0800 Subject: [PATCH 1/3] feat: The updated version shows --- .github/workflows/release.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7c3cd7..6d11e1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,8 +29,14 @@ jobs: needs: test runs-on: ${{ matrix.os }} strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + matrix: + include: + - os: ubuntu-latest + platform: linux + - os: windows-latest + platform: windows + - os: macos-latest + platform: darwin steps: - uses: actions/checkout@v4 @@ -52,7 +58,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: binaries-${{ matrix.os }} - path: dist/casbin-python-cli-* + path: ist/casbin-python-cli-${{ matrix.platform }}* release: needs: [test, build-binaries] @@ -85,7 +91,8 @@ jobs: - name: Move binaries to dist run: | mkdir -p dist - find artifacts -name "casbin-python-cli-*" -exec cp {} dist/ \; + find artifacts -name "casbin-python-cli-*" -type f -exec cp {} dist/ \; + ls -la dist/ - name: Semantic Release env: From cbe8025720f7fa0851dac5f7b4caca80608dee1d Mon Sep 17 00:00:00 2001 From: kevin kwok <13146699620ke@gmail.com> Date: Tue, 22 Jul 2025 08:03:20 +0800 Subject: [PATCH 2/3] feat: The updated version shows --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6d11e1c..ed868d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,7 @@ jobs: pip install pyinstaller - name: Build binary - run: python scripts/build_binaries.py + run: python scripts/build_binaries.py --platform ${{ matrix.platform }} - name: Upload artifacts uses: actions/upload-artifact@v4 @@ -92,7 +92,6 @@ jobs: run: | mkdir -p dist find artifacts -name "casbin-python-cli-*" -type f -exec cp {} dist/ \; - ls -la dist/ - name: Semantic Release env: From d92dff70dd49c32e5e85cbff40fcd5a81abb5ece Mon Sep 17 00:00:00 2001 From: kevin kwok <13146699620ke@gmail.com> Date: Tue, 22 Jul 2025 08:09:58 +0800 Subject: [PATCH 3/3] feat: The updated version shows --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed868d8..701df3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,8 +57,8 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: binaries-${{ matrix.os }} - path: ist/casbin-python-cli-${{ matrix.platform }}* + name: binaries-${{ matrix.platform }} + path: dist/casbin-python-cli-${{ matrix.platform }}* release: needs: [test, build-binaries] @@ -91,7 +91,7 @@ jobs: - name: Move binaries to dist run: | mkdir -p dist - find artifacts -name "casbin-python-cli-*" -type f -exec cp {} dist/ \; + find artifacts -name "casbin-python-cli-*" -exec cp {} dist/ \; - name: Semantic Release env: