Skip to content

Commit 64f2158

Browse files
authored
Update release.yml
1 parent d52dd85 commit 64f2158

File tree

1 file changed

+29
-27
lines changed

1 file changed

+29
-27
lines changed

.github/workflows/release.yml

+29-27
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Release
22

3+
34
on:
5+
workflow_dispatch: {}
46
push:
57
tags:
68
- '[0-9]+.[0-9]+.[0-9]*'
@@ -29,7 +31,7 @@ jobs:
2931
- name: Build wheels
3032
run: python -m cibuildwheel --output-dir dist
3133
env:
32-
CIBW_ENVIRONMENT: HNSWLIB_NO_NATIVE=true
34+
CIBW_ENVIRONMENT: HNSWLIB_NO_NATIVE=true CFLAGS='-O2' CXXFLAGS='-O2'
3335
CIBW_ENVIRONMENT_PASS_LINUX: HNSWLIB_NO_NATIVE
3436
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7"
3537
CIBW_SKIP: "cp312-* pp* *musllinux*"
@@ -42,29 +44,29 @@ jobs:
4244
name: python-package-distributions
4345
path: dist
4446

45-
upload:
46-
runs-on: ubuntu-latest
47-
needs: build
48-
steps:
49-
- uses: actions/checkout@v3
50-
- uses: actions/setup-python@v4
51-
with:
52-
python-version: "3.10"
53-
- name: Build sdist
54-
run: |
55-
python -m pip install .
56-
make dist
57-
- name: Download wheels
58-
uses: actions/download-artifact@v3
59-
with:
60-
name: python-package-distributions
61-
path: dist/
62-
- name: Publish to Test PyPI
63-
uses: pypa/gh-action-pypi-publish@release/v1
64-
with:
65-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
66-
repository-url: https://test.pypi.org/legacy/
67-
- name: Publish to PyPI
68-
uses: pypa/gh-action-pypi-publish@release/v1
69-
with:
70-
password: ${{ secrets.PYPI_API_TOKEN }}
47+
# upload:
48+
# runs-on: ubuntu-latest
49+
# needs: build
50+
# steps:
51+
# - uses: actions/checkout@v3
52+
# - uses: actions/setup-python@v4
53+
# with:
54+
# python-version: "3.10"
55+
# - name: Build sdist
56+
# run: |
57+
# python -m pip install .
58+
# make dist
59+
# - name: Download wheels
60+
# uses: actions/download-artifact@v3
61+
# with:
62+
# name: python-package-distributions
63+
# path: dist/
64+
# - name: Publish to Test PyPI
65+
# uses: pypa/gh-action-pypi-publish@release/v1
66+
# with:
67+
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
68+
# repository-url: https://test.pypi.org/legacy/
69+
# - name: Publish to PyPI
70+
# uses: pypa/gh-action-pypi-publish@release/v1
71+
# with:
72+
# password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)