@@ -36,43 +36,43 @@ jobs:
36
36
run : |
37
37
sed -i "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml
38
38
- name : 📦 Build package
39
- run : uv build --config-settings build-args='--compatibility ${{ matrix.linux-compatibility }}'
39
+ run : uv build --wheel -- config-settings build-args='--compatibility ${{ matrix.linux-compatibility }}'
40
40
- name : ⬆️ Upload wheels
41
41
uses : actions/upload-artifact@v4
42
42
with :
43
43
name : wheels-${{ matrix.python-version }}-${{ matrix.linux-compatibility }}
44
44
path : dist
45
45
46
- release :
47
- name : Releasing to PyPi
48
- runs-on : ubuntu-latest
49
- needs : ["wheels"]
50
- environment :
51
- name : release
52
- url : https://pypi.org/manage/project/deebot-client/
53
- permissions :
54
- contents : write
55
- id-token : write
56
- steps :
57
- - name : ⤵️ Check out code from GitHub
58
-
59
- - name : 🏗 Set up uv
60
- uses : astral-sh/setup-uv@v5
61
- with :
62
- enable-cache : true
63
- - name : 🏗 Set package version
64
- run : |
65
- sed -i "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml
66
- - name : 📦 Build source package
67
- run : uv build --sdist
68
- - name : ⬇️ Download wheels
69
- uses : actions/download-artifact@v4
70
- with :
71
- name : wheels-*
72
- - name : 🚀 Publish to PyPi
73
- run : uv publish
74
- - name : ✍️ Sign published artifacts
75
-
76
- with :
77
- inputs : ./dist/*.tar.gz ./dist/*.whl
78
- release-signing-artifacts : true
46
+ release :
47
+ name : Releasing to PyPi
48
+ runs-on : ubuntu-latest
49
+ needs : ["wheels"]
50
+ environment :
51
+ name : release
52
+ url : https://pypi.org/manage/project/deebot-client/
53
+ permissions :
54
+ contents : write
55
+ id-token : write
56
+ steps :
57
+ - name : ⤵️ Check out code from GitHub
58
+
59
+ - name : 🏗 Set up uv
60
+ uses : astral-sh/setup-uv@v5
61
+ with :
62
+ enable-cache : true
63
+ - name : 🏗 Set package version
64
+ run : |
65
+ sed -i "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml
66
+ - name : 📦 Build source package
67
+ run : uv build --sdist
68
+ - name : ⬇️ Download wheels
69
+ uses : actions/download-artifact@v4
70
+ with :
71
+ pattern : wheels-*
72
+ - name : 🚀 Publish to PyPi
73
+ run : uv publish
74
+ - name : ✍️ Sign published artifacts
75
+
76
+ with :
77
+ inputs : ./dist/*.tar.gz ./dist/*.whl
78
+ release-signing-artifacts : true
0 commit comments