Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-thinkst authored Jun 1, 2023
1 parent 826e230 commit ad53600
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,17 @@ jobs:
- name: check version matches tag
run: |
python3 -m pip install dist/*
version_to_release = opencanaryd --version
tag_name = ${{ github.event.release.tag_name }}
if [[ "$version_to_release" == "$tag_name" ]]; then
echo "Versions match "
exit 0
else
echo "Versions do not match"
echo "$version_to_release"
echo "$tag_name"
exit 1
fi
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit ad53600

Please sign in to comment.