We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d6ef34 commit eb27d10Copy full SHA for eb27d10
1 file changed
.github/workflows/python-wheel.yml
@@ -47,6 +47,7 @@ jobs:
47
env:
48
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49
run: |
50
+
51
# Abort if no wheels were built
52
if [ -z "$(ls -A ./dist/*.whl 2>/dev/null)" ]; then
53
echo "No wheels found, skipping push"
@@ -73,6 +74,11 @@ jobs:
73
74
echo "Wheels to publish:"
75
ls -lh wheels/
76
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
82
# Commit and push
83
git config user.name "GitHub Actions"
84
git config user.email "actions@github.com"
0 commit comments