Skip to content

Commit 37c8b7a

Browse files
committed
Build only wheel
1 parent 4cbe791 commit 37c8b7a

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.github/workflows/python-publish.yml

+34-34
Original file line numberDiff line numberDiff line change
@@ -36,43 +36,43 @@ jobs:
3636
run: |
3737
sed -i "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml
3838
- 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 }}'
4040
- name: ⬆️ Upload wheels
4141
uses: actions/upload-artifact@v4
4242
with:
4343
name: wheels-${{ matrix.python-version }}-${{ matrix.linux-compatibility }}
4444
path: dist
4545

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-
uses: actions/[email protected]
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-
uses: sigstore/[email protected]
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+
uses: actions/[email protected]
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+
uses: sigstore/[email protected]
76+
with:
77+
inputs: ./dist/*.tar.gz ./dist/*.whl
78+
release-signing-artifacts: true

0 commit comments

Comments
 (0)