Skip to content

Commit

Permalink
CI: Build with build
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 13, 2023
1 parent 5bdab69 commit 581b9fa
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Build
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
pipx run build
pipx run twine check dist/*
- name: Upload to PyPI
run: pipx run twine upload dist/*
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py bdist_wheel
twine upload dist/*

0 comments on commit 581b9fa

Please sign in to comment.