Skip to content

Commit 8ba0a89

Browse files
authored
Update publish-release.yml
1 parent 9265d77 commit 8ba0a89

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/publish-release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
name: Publish a new release
55

66
on:
7-
push:
8-
branches:
9-
- main
10-
7+
workflow_run:
8+
workflows: ["create-release"]
9+
branches: [main]
10+
types:
11+
- completed
1112
jobs:
1213
build:
1314
runs-on: ubuntu-latest
@@ -31,11 +32,6 @@ jobs:
3132
--wheel
3233
--outdir dist/
3334
.
34-
- name: Publish distribution to Test PyPI
35-
uses: pypa/gh-action-pypi-publish@master
36-
with:
37-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
38-
repository_url: https://test.pypi.org/legacy/
3935
- name: Publish distribution to PyPI
4036
if: startsWith(github.ref, 'refs/tags')
4137
uses: pypa/gh-action-pypi-publish@master

0 commit comments

Comments
 (0)