Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Updated to reflect Adrian's requested changes
  • Loading branch information
Thomas-Rowlands authored Dec 9, 2024
1 parent 81da143 commit 9278c6f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,7 @@ jobs:
# Check package version matches release tag
- name: Check package version matches tag
run: |
poetry install
pkgver=$(python -c "
import autocorpus
try:
from importlib.metadata import version
print(version('autocorpus'), end='')
except importlib.metadata.PackageNotFoundError:
print(autocorpus.__dict__.get('__version__', '0.0.0'), end='')
")
echo "Detected package version: $pkgver"
# Ensure tag name matches version
test v$pkgver = ${{ github.ref_name }}
pkgver=$(poetry run python -c "import autocorpus; print(autocorpus.__version__, end='')")
# Build package with Poetry
Expand Down

0 comments on commit 9278c6f

Please sign in to comment.