Skip to content

Commit 4f5b8c7

Browse files
feat: fix binary names (#10)
1 parent c15d5df commit 4f5b8c7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ jobs:
2929
needs: test
3030
runs-on: ${{ matrix.os }}
3131
strategy:
32-
matrix:
33-
os: [ubuntu-latest, windows-latest, macos-latest]
32+
matrix:
33+
include:
34+
- os: ubuntu-latest
35+
platform: linux
36+
- os: windows-latest
37+
platform: windows
38+
- os: macos-latest
39+
platform: darwin
3440

3541
steps:
3642
- uses: actions/checkout@v4
@@ -46,13 +52,13 @@ jobs:
4652
pip install pyinstaller
4753
4854
- name: Build binary
49-
run: python scripts/build_binaries.py
55+
run: python scripts/build_binaries.py --platform ${{ matrix.platform }}
5056

5157
- name: Upload artifacts
5258
uses: actions/upload-artifact@v4
5359
with:
54-
name: binaries-${{ matrix.os }}
55-
path: dist/casbin-python-cli-*
60+
name: binaries-${{ matrix.platform }}
61+
path: dist/casbin-python-cli-${{ matrix.platform }}*
5662

5763
release:
5864
needs: [test, build-binaries]
@@ -85,7 +91,7 @@ jobs:
8591
- name: Move binaries to dist
8692
run: |
8793
mkdir -p dist
88-
find artifacts -name "casbin-python-cli-*" -exec cp {} dist/ \;
94+
find artifacts -name "casbin-python-cli-*" -exec cp {} dist/ \;
8995
9096
- name: Semantic Release
9197
env:

0 commit comments

Comments
 (0)