Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,28 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel twine
python -m pip install --upgrade build setuptools wheel twine

- name: Build wheel
run: |
python setup.py build bdist_wheel
python -m build --wheel

# Upload the built pip packages so we can inspect them
- name: Upload packages.
uses: actions/upload-artifact@v4
with:
name: pip-packages
path: |
dist/casement-*.whl
dist/casement-*.tar.gz
# This is only used if there is a problem with the next step
retention-days: 1

- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
Loading