Skip to content

Commit 07246a0

Browse files
authored
Update build_publish.yml
1 parent e38c16c commit 07246a0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build_publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build
22

3-
on: [push, pull_request]
3+
on:
4+
release:
5+
types: [created]
46

57
jobs:
68
build:
@@ -60,6 +62,6 @@ jobs:
6062
path: ./wheels
6163
- name: Publish
6264
env:
63-
TWINE_USERNAME: ${{ secrets.TPYPI_USERNAME }}
64-
TWINE_PASSWORD: ${{ secrets.TPYPI_PASSWORD }}
65-
run: twine upload --repository testpypi ./wheels/*
65+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
66+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
67+
run: twine upload ./wheels/*

0 commit comments

Comments
 (0)