Skip to content

Commit 8349576

Browse files
committed
release wheels
1 parent c2b2249 commit 8349576

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77
pull_request:
8+
release:
9+
types:
10+
- published
811
workflow_dispatch:
912

1013
permissions:
@@ -108,3 +111,23 @@ jobs:
108111
with:
109112
name: wheels
110113
path: dist
114+
115+
release:
116+
name: Release
117+
environment: release
118+
permissions:
119+
id-token: write
120+
runs-on: ubuntu-latest
121+
needs: [linux, windows, macos, sdist]
122+
if: github.event.action == 'published'
123+
steps:
124+
- uses: actions/download-artifact@v3
125+
with:
126+
name: wheels
127+
path: dist
128+
129+
- name: Publish to PyPI
130+
uses: PyO3/maturin-action@v1
131+
with:
132+
command: upload
133+
args: --non-interactive --skip-existing dist/*

0 commit comments

Comments
 (0)