Skip to content

Commit

Permalink
better names, better config, better version
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacdonald committed Sep 25, 2024
1 parent f56ce03 commit f6c04f7
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 @@ -28,15 +28,14 @@ jobs:
- name: Install build tool
run: pip install build

- name: Build a test source tarball
- name: Amend version for test release
if: github.event.inputs.releasetype == 'test'
run: |
export PYTERRIER_VERSION_SUFFIX=".`date +%s`"
sed -Ei "1 s/'\$/.$PYTERRIER_VERSION_SUFFIX'/g" pyterrier/__init__.py
sed -Ei "1 s/'\$/$PYTERRIER_VERSION_SUFFIX'/g" pyterrier/__init__.py
head -n 1 pyterrier/__init__.py
- name: Build a source tarball
if: github.event.inputs.releasetype == 'release'
- name: Build source tarball
run: python -m build

- name: Publish distribution 📦 to Test PyPI
Expand Down

0 comments on commit f6c04f7

Please sign in to comment.