Skip to content

Commit 71d8540

Browse files
committed
fix: Pypi binary publishing
1 parent b1b53a1 commit 71d8540

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,24 @@ jobs:
1616
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
1717
with:
1818
enable-cache: true
19-
- name: build dist
19+
- name: install dependencies
2020
run: uv sync --group bundle
2121
- name: build dist
2222
run: uv build
2323
- name: build binary
24-
run: uv run pyinstaller scim2.spec
24+
run: uv run pyinstaller --distpath bin scim2.spec
2525
- name: rename binary
26-
run: mv dist/scim2 dist/scim2-linux
26+
run: mv bin/scim2 bin/scim2-linux
2727
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
2828
with:
29-
name: artifacts
29+
name: dist
3030
path: dist/*
3131
if-no-files-found: error
32+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
33+
with:
34+
name: binary
35+
path: bin/scim2-linux
36+
if-no-files-found: error
3237

3338
release:
3439
name: create Github release
@@ -37,12 +42,12 @@ jobs:
3742
steps:
3843
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
3944
with:
40-
name: artifacts
41-
path: dist
45+
name: binary
46+
path: bin
4247
- uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
4348
with:
4449
files: |
45-
dist/scim2-linux
50+
bin/scim2-linux
4651
publish:
4752
name: release to pypi
4853
needs: build
@@ -57,7 +62,7 @@ jobs:
5762
steps:
5863
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
5964
with:
60-
name: artifacts
65+
name: dist
6166
path: dist
6267

6368
- name: Push build artifacts to PyPI

0 commit comments

Comments
 (0)