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
41 changes: 12 additions & 29 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,20 @@ on:
jobs:
publish-pypi:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.13
uses: actions/setup-python@v2
with:
python-version: 3.13

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

- name: Checkout tag ${{ github.event.inputs.tag }}
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.tag }}

- name: Build source distribution and wheel
run: |
python -m build --sdist --wheel

- name: List distribution artifacts
run: |
ls -l dist/

# - name: Publish package to PyPI
# uses: pypa/gh-action-pypi-publish@v1.13.0
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies for testing
run: |
python -m pip install -U pip # Official recommended way
pip install pytest
pip install setuptools wheel twine build

- name: Publish on PyPI
- name: Publish on PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
Loading