Skip to content

Commit

Permalink
[ci] fix failed deploy job
Browse files Browse the repository at this point in the history
use pypa/build to build source distribution so it fetchs build deps from pyproject.toml.
Last time it failed because it was missing pkgconfig.
Use pipx run to bootstrap both build and twine tools
  • Loading branch information
anthrotype committed Aug 23, 2024
1 parent a156682 commit 095f749
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools cython wheel twine
- name: Download artifacts from build jobs
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -108,5 +104,5 @@ jobs:
else
echo "DEBUG: This is a final release"
fi
python setup.py sdist
twine upload dist/*
pipx run build --sdist --outdir dist/
pipx run twine upload dist/*

0 comments on commit 095f749

Please sign in to comment.