Skip to content

Commit 517eee7

Browse files
committed
feat(workflow): upload to pypi
1 parent 78e4173 commit 517eee7

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

.github/workflows/release.yaml renamed to .github/workflows/cd.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,19 @@ jobs:
110110
if: startsWith(github.ref, 'refs/tags/')
111111
with:
112112
files: '*.whl'
113+
publish:
114+
name: Publish
115+
runs-on: ubuntu-latest
116+
if: startsWith(github.ref, 'refs/tags/')
117+
needs: [linux, windows, macos, sdist]
118+
steps:
119+
- uses: actions/download-artifact@v3
120+
with:
121+
name: wheels
122+
- name: Publish to PyPI
123+
uses: PyO3/maturin-action@v1
124+
env:
125+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
126+
with:
127+
command: upload
128+
args: --non-interactive --skip-existing *

.github/workflows/convert.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: convert readme
2-
on:
2+
'on':
33
push:
4-
branches: [master]
4+
tags:
5+
- '*'
56
jobs:
67
convert:
78
runs-on: ubuntu-latest

.github/workflows/publish.yaml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)