Skip to content

Commit

Permalink
fix sdist so pypi upload can happen (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf authored Feb 7, 2024
1 parent e0767a5 commit e0b98f0
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/publish-sdist.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish sdist tarball to PyPi
name: PyPI

on:
push:
Expand All @@ -10,17 +10,23 @@ jobs:
name: Build and publish on PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Build a source tarball
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install build
- name: Build distribution packages
run:
python setup.py sdist
python -m build

- name: Publish distribution package to PyPI
- name: Publish distribution packages to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit e0b98f0

Please sign in to comment.