Skip to content

Commit

Permalink
fix: GH action for pypi releases
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrink committed Sep 21, 2023
1 parent dbc55f6 commit ce4c3b9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/pypi_release.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
name: Publish Python 🐍 distributions 📦 to PyPI
name: Publish Python distributions to PyPI

on:
release:
types: [published]

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-18.04
name: Build and publish Python distributions to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install pypa/setuptools
run: >-
python -m
pip install wheel
run: python -m pip install wheel
- name: Build a binary wheel
run: >-
python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
run: python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v2.0.0
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit ce4c3b9

Please sign in to comment.