Skip to content

Commit 8804a12

Browse files
committed
Simplify package publishing path
1 parent 598a1f6 commit 8804a12

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-wheels.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,17 @@ jobs:
119119
cd packages
120120
121121
# Prune old wheels
122-
if [ -d "simple/${{ github.repository }}/nightly/" ]; then
123-
find simple/${{ github.repository }}/nightly/ -type f -mtime +30 -name "*.whl" -exec rm -f {} \;
122+
if [ -d "simple/nightly/" ]; then
123+
find simple/nightly/ -type f -mtime +30 -name "*.whl" -exec rm -f {} \;
124124
echo "Pruned nightly wheels older than 30 days"
125125
else
126126
echo "Nightly wheels directory does not exist. Creating it."
127-
mkdir -p simple/${{ github.repository }}/nightly/
127+
mkdir -p simple/nightly/
128128
fi
129129
130130
# Copy new wheels
131-
cp ../dist/*.whl simple/${{ github.repository }}/nightly/
132-
ls -lh simple/${{ github.repository }}/nightly/
131+
cp ../dist/*.whl simple/nightly/
132+
ls -lh simple/nightly/
133133
134134
# Publish wheels
135135
git remote set-url origin https://x-access-token:${{ secrets.NIGHTLY_TOKEN }}@github.com/${{ github.repository }}

0 commit comments

Comments
 (0)