diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 23ed6368..06010e96 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -36,43 +36,43 @@ jobs: run: | sed -i "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml - name: ๐Ÿ“ฆ Build package - run: uv build --config-settings build-args='--compatibility ${{ matrix.linux-compatibility }}' + run: uv build --wheel --config-settings build-args='--compatibility ${{ matrix.linux-compatibility }}' - name: โฌ†๏ธ Upload wheels uses: actions/upload-artifact@v4 with: name: wheels-${{ matrix.python-version }}-${{ matrix.linux-compatibility }} path: dist -release: - name: Releasing to PyPi - runs-on: ubuntu-latest - needs: ["wheels"] - environment: - name: release - url: https://pypi.org/manage/project/deebot-client/ - permissions: - contents: write - id-token: write - steps: - - name: โคต๏ธ Check out code from GitHub - uses: actions/checkout@v4.2.2 - - name: ๐Ÿ— Set up uv - uses: astral-sh/setup-uv@v5 - with: - enable-cache: true - - name: ๐Ÿ— Set package version - run: | - sed -i "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml - - name: ๐Ÿ“ฆ Build source package - run: uv build --sdist - - name: โฌ‡๏ธ Download wheels - uses: actions/download-artifact@v4 - with: - name: wheels-* - - name: ๐Ÿš€ Publish to PyPi - run: uv publish - - name: โœ๏ธ Sign published artifacts - uses: sigstore/gh-action-sigstore-python@v3.0.0 - with: - inputs: ./dist/*.tar.gz ./dist/*.whl - release-signing-artifacts: true + release: + name: Releasing to PyPi + runs-on: ubuntu-latest + needs: ["wheels"] + environment: + name: release + url: https://pypi.org/manage/project/deebot-client/ + permissions: + contents: write + id-token: write + steps: + - name: โคต๏ธ Check out code from GitHub + uses: actions/checkout@v4.2.2 + - name: ๐Ÿ— Set up uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + - name: ๐Ÿ— Set package version + run: | + sed -i "s/^version = \".*\"/version = \"${{ github.event.release.tag_name }}\"/" pyproject.toml + - name: ๐Ÿ“ฆ Build source package + run: uv build --sdist + - name: โฌ‡๏ธ Download wheels + uses: actions/download-artifact@v4 + with: + name: wheels-* + - name: ๐Ÿš€ Publish to PyPi + run: uv publish + - name: โœ๏ธ Sign published artifacts + uses: sigstore/gh-action-sigstore-python@v3.0.0 + with: + inputs: ./dist/*.tar.gz ./dist/*.whl + release-signing-artifacts: true