2626 runs-on : [self-hosted, linux, arm64, ubuntu-latest]
2727 if : ${{ !github.event.pull_request.draft }}
2828 steps :
29+ - name : Setup Python and install twine for PyPI upload
30+ run : |
31+ echo "=== Setting up Python for PyPI upload ==="
32+ # Install pip if not available
33+ sudo apt-get update
34+ sudo apt-get install -y python3-pip
35+ python3 --version
36+ python3 -m pip --version
37+ echo "=== Installing twine ==="
38+ python3 -m pip install --upgrade pip --break-system-packages
39+ python3 -m pip install twine --break-system-packages
40+ if ! python3 -m twine --version; then
41+ echo "ERROR: Twine installation failed!"
42+ exit 1
43+ fi
44+ echo "Twine installed successfully"
45+
2946 - name : Setup Docker permissions
3047 run : |
3148 # Ensure Docker is running
7188 fi
7289 echo "Test success marker found. All tests completed successfully."
7390 echo "Proceeding with wheel upload..."
91+ ls -la ./dist/
7492 continue-on-error : false
7593 # Upload wheels to release
7694 - name : Upload wheels to release
@@ -83,24 +101,6 @@ jobs:
83101 GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
84102 continue-on-error : true
85103
86- - name : Setup Python and install twine for PyPI upload
87- run : |
88- echo "=== Setting up Python for PyPI upload ==="
89- # Install pip if not available
90- sudo apt-get update
91- sudo apt-get install -y python3-pip
92- python3 --version
93- python3 -m pip --version
94- echo "=== Installing twine ==="
95- python3 -m pip install --upgrade pip
96- python3 -m pip install twine
97- if ! python3 -m twine --version; then
98- echo "ERROR: Twine installation failed!"
99- exit 1
100- fi
101- echo "Twine installed successfully"
102- ls -la ./dist/
103-
104104 # Upload to PyPI
105105 - name : Upload pypi
106106 if : startsWith(github.ref, 'refs/tags/v')
0 commit comments