Release v1.0.0 #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to PyPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
name: Publish to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ".[build]" | |
- name: Build package | |
run: python -m build | |
- name: Verify package integrity | |
run: twine check dist/* | |
- name: Upload release artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release-dist-${{ github.ref_name }} | |
path: dist/ | |
retention-days: 30 # Keep release artifacts longer | |
- name: Publish to PyPI | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
run: | | |
twine upload --repository pypi dist/* | |
- name: Wait for PyPI indexing | |
run: | | |
echo "Waiting for PyPI to index the package..." | |
sleep 60 | |
- name: Verify published versions | |
run: | | |
echo "Available versions:" | |
pip index versions --index-url https://pypi.org/simple/ wiley-tdm |