Skip to content

Commit

Permalink
Update pypi publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSava committed Apr 22, 2024
1 parent e47ac75 commit c156d48
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.7
- name: Install dependencies
run: pip install --upgrade setuptools wheel twine
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Upload deploy
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_SECRET }}
run: python -m twine upload dist/*
python-version: 3.11
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_SECRET }}

0 comments on commit c156d48

Please sign in to comment.