Skip to content

Commit

Permalink
👷 Fix pypi-publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteApfel committed Jun 11, 2023
1 parent 8fcef9d commit a15237d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,23 @@ on:
jobs:
build-n-publish:
name: Build and publish package to PyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8

python-version: '3.10'
- name: Install pypa/build
run: >-
python3 -m pip install --user --upgrade setuptools wheel
- name: Build a binary wheel and a source tarball
env:
TAG_VERSION: ${{ github.event.release.tag_name }}
run: >-
python3 setup.py sdist bdist_wheel
- name: Publish package to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a15237d

Please sign in to comment.