Skip to content

Commit 285e868

Browse files
committed
fix: github actions
1 parent 4bc5e1c commit 285e868

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

.github/workflows/upload-pypi-dev.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -27,40 +27,40 @@ jobs:
2727
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
2828
2929
- name: Build and publish to PyPI as development release
30-
working-directory: ./libs/llmstudio
31-
run: |
32-
poetry version prerelease
33-
poetry build
34-
poetry publish
30+
working-directory: ./libs/llmstudio
31+
run: |
32+
poetry version prerelease
33+
poetry build
34+
poetry publish
3535

3636
- name: Commit and push updated pyproject.toml
37-
working-directory: ./libs/llmstudio
38-
run: |
39-
git config user.name "GitHub Actions"
40-
git config user.email "actions@github.com"
41-
git add pyproject.toml
42-
git commit -m "[fix] bump prerelease version in pyproject.toml"
43-
git push
37+
working-directory: ./libs/llmstudio
38+
run: |
39+
git config user.name "GitHub Actions"
40+
git config user.email "actions@github.com"
41+
git add pyproject.toml
42+
git commit -m "[fix] bump prerelease version in pyproject.toml"
43+
git push
4444

4545
# Wait for PyPI to update
4646
- name: Wait for PyPI to update
47-
working-directory: ./libs/llmstudio
48-
run: |
49-
VERSION=$(poetry version --short)
50-
echo "Checking for llmstudio==$VERSION on PyPI..."
51-
for i in {1..10}; do
52-
if python -m pip install llmstudio==${VERSION} --dry-run >/dev/null 2>&1; then
53-
echo "Package llmstudio==${VERSION} is available on PyPI."
54-
break
55-
else
56-
echo "Package llmstudio==${VERSION} not available yet. Waiting 15 seconds..."
57-
sleep 15
58-
fi
59-
if [ $i -eq 10 ]; then
60-
echo "Package did not become available in time."
61-
exit 1
62-
fi
63-
done
47+
working-directory: ./libs/llmstudio
48+
run: |
49+
VERSION=$(poetry version --short)
50+
echo "Checking for llmstudio==$VERSION on PyPI..."
51+
for i in {1..10}; do
52+
if python -m pip install llmstudio==${VERSION} --dry-run >/dev/null 2>&1; then
53+
echo "Package llmstudio==${VERSION} is available on PyPI."
54+
break
55+
else
56+
echo "Package llmstudio==${VERSION} not available yet. Waiting 15 seconds..."
57+
sleep 15
58+
fi
59+
if [ $i -eq 10 ]; then
60+
echo "Package did not become available in time."
61+
exit 1
62+
fi
63+
done
6464

6565
# Docker build and push section
6666
- name: Set up Docker Buildx

0 commit comments

Comments
 (0)