Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sdist so pypi upload can happen #1105

Merged
merged 1 commit into from
Feb 7, 2024
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
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 }}
Loading