Skip to content

Commit

Permalink
update .github/workflows/pypi-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 13, 2024
1 parent 2563f9a commit 8c4f3d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Create release
id: create-release
run: |
VERSION=$(./scripts/version-core)
if pip index versions pyglossary --pre | grep "$VERSION," ; then
echo 'Package version $VERSION already exists on pypi'
echo "skipnext=true" >> $GITHUB_OUTPUT
exit 0
fi
sudo rm -rf dist/* build/* || true
python3 setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
if: ( steps.create-release.outputs.skipnext != 'true' )
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
Expand Down

0 comments on commit 8c4f3d3

Please sign in to comment.