Skip to content

Commit eb27d10

Browse files
committed
Add latest.txt to track versioning
1 parent 0d6ef34 commit eb27d10

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/python-wheel.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
env:
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4949
run: |
50+
5051
# Abort if no wheels were built
5152
if [ -z "$(ls -A ./dist/*.whl 2>/dev/null)" ]; then
5253
echo "No wheels found, skipping push"
@@ -73,6 +74,11 @@ jobs:
7374
echo "Wheels to publish:"
7475
ls -lh wheels/
7576
77+
# Generate latest.txt (name of newest wheel)
78+
latest_wheel=$(ls -1 wheels/*.whl | sort | tail -n 1)
79+
echo "$(basename $latest_wheel)" > wheels/latest.txt
80+
echo "Latest wheel: $(cat wheels/latest.txt)"
81+
7682
# Commit and push
7783
git config user.name "GitHub Actions"
7884
git config user.email "actions@github.com"

0 commit comments

Comments
 (0)