Skip to content

Commit

Permalink
Update/unbreak release-based PyPI publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
schmrlng committed Mar 22, 2024
1 parent 12441cf commit 0eda983
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build setuptools
- name: Check consistency between the package version and release tag
run: |
PACKAGE_VER="v`python setup.py --version`"
if [ $PACKAGE_VER != ${{ github.event.release.tag_name }} ]
then
echo "Package version ($PACKAGE_VER) != release tag (${{ github.event.release.tag_name }})."; exit 1
fi
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish to PyPI
Expand Down

0 comments on commit 0eda983

Please sign in to comment.