Skip to content

Commit

Permalink
Build only wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus committed Jan 3, 2025
1 parent 4cbe791 commit 5798c98
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- 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/[email protected]
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/[email protected]
- 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/[email protected]
with:
inputs: ./dist/*.tar.gz ./dist/*.whl
release-signing-artifacts: true

0 comments on commit 5798c98

Please sign in to comment.