Skip to content

Commit c5ba85b

Browse files
committed
was using wrong api key
1 parent 131965a commit c5ba85b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/build_wheels.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,19 @@ on: [push, pull_request]
55
jobs:
66
build_wheels:
77
runs-on: ubuntu-latest
8-
8+
if: github.event_name != 'pull_request'
9+
910
steps:
1011
- name: Checkout repository
1112
uses: actions/checkout@v4
1213

1314
- name: Set up Docker
1415
uses: docker/setup-buildx-action@v1
1516

16-
- name: Create wheelhouse directory
17-
run: mkdir -p wheelhouse
18-
19-
- name: Build wheel
17+
- name: Build and copy wheel
2018
run: |
21-
sudo docker run --rm -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 /bin/bash -c "
19+
CONTAINER_ID=$(sudo docker run -d -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 sleep infinity)
20+
sudo docker exec $CONTAINER_ID /bin/bash -c "
2221
yum install -y epel-release &&
2322
yum-config-manager --add-repo=https://download.opensuse.org/repositories/science:/dlr/CentOS_7/ &&
2423
yum install -y --nogpgcheck eigen3-devel &&
@@ -30,14 +29,14 @@ jobs:
3029
cd /io &&
3130
/opt/python/cp311-cp311/bin/pip install setuptools wheel --root-user-action=ignore &&
3231
/opt/python/cp311-cp311/bin/python setup.py bdist_wheel &&
33-
auditwheel repair dist/ismpc-0.1-cp311-cp311-linux_x86_64.whl --plat manylinux2014_x86_64 &&
34-
chown -R $(id -u):$(id -g) /io/wheelhouse"
32+
auditwheel repair dist/ismpc-0.1-cp311-cp311-linux_x86_64.whl --plat manylinux2014_x86_64"
33+
sudo docker cp $CONTAINER_ID:/io/wheelhouse/. ./wheelhouse/
34+
sudo docker stop $CONTAINER_ID
3535
3636
- name: Upload wheels to PyPI
3737
env:
3838
TWINE_USERNAME: "__token__"
39-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
40-
TWINE_REPOSITORY_URL: "https://upload.pypi.org/legacy/"
39+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
4140
run: |
4241
python -m pip install --upgrade twine &&
4342
twine upload --verbose wheelhouse/*.whl

0 commit comments

Comments
 (0)