Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pypi upload version #61

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/upload-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Verify git tag vs. VERSION
run: |
VERSION="v$(cat gpflux/version.py | grep "__version__ = " | sed -e 's/__version__ = //' | sed -e 's/"//g')"
TAG="${GITHUB_REF/refs\/tags\//}"
if [ "$VERSION" != "$TAG" ]; then
echo "The package version ($VERSION) and the latest tag version ($TAG) are different"
exit 1
fi
- name: Install twine and wheel
run: |
pip install twine wheel
Expand Down