Skip to content

Commit

Permalink
reorder commands to have hatch while checking for version
Browse files Browse the repository at this point in the history
  • Loading branch information
arogozhnikov committed Dec 24, 2024
1 parent 1ff556a commit 8985ed1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
with:
# Use the minimum Python version in pyproject.toml (later versions should maintain backwards-compatibility)
python-version: "3.10"
- name: Install dependencies
run: |
pip install . && pip install hatch
- name: check version
run: |
GIT_TAG=$(git describe --tags --exact-match 2>/dev/null || echo "No tag")
Expand All @@ -24,10 +27,6 @@ jobs:
echo "version mismatch: $GIT_TAG and $CODE_VERSION"
exit 1
fi
- name: Install dependencies
run: |
pip install . && pip install hatch
- name: Publish to PyPi
env:
HATCH_INDEX_USER: "__token__"
Expand Down

0 comments on commit 8985ed1

Please sign in to comment.