Skip to content

Commit a66968f

Browse files
committed
minor fix
1 parent 5957e61 commit a66968f

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
714
jobs:
815
build_wheels:
916
name: Build wheels on ${{ matrix.os }}
@@ -44,13 +51,15 @@ jobs:
4451
run: |
4552
python -c "import os, sys; sys.path.append(os.path.join(os.getcwd(), 'src')); from webview._webview_ffi import _be_sure_libraries; _be_sure_libraries()"
4653
47-
- name: Build wheels
54+
- name: Build
55+
# https://github.com/pypa/cibuildwheel
4856
uses: pypa/cibuildwheel@v2.16.5
4957
env:
50-
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-* cp313-*"
58+
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
5159
CIBW_ARCHS_MACOS: "x86_64 arm64"
52-
CIBW_ARCHS_LINUX: "x86_64"
53-
CIBW_ARCHS_WINDOWS: "AMD64"
60+
CIBW_ARCHS_LINUX: "x86_64 aarch64"
61+
#https://cibuildwheel.pypa.io/en/stable/options/#archs
62+
CIBW_ARCHS_WINDOWS: "AMD64 ARM64"
5463
CIBW_SKIP: "*-musllinux*"
5564
#CIBW_BEFORE_BUILD_LINUX: "yum install -y webkit2gtk3-devel"
5665
#CIBW_BUILD_VERBOSITY: 1
@@ -86,6 +95,7 @@ jobs:
8695
cp dist/*/*.whl final_dist/
8796
8897
- name: Publish to PyPI
98+
if: github.event_name == 'release'
8999
env:
90100
TWINE_USERNAME: __token__
91101
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)