Skip to content

Commit 48580fc

Browse files
committed
CI: Fix PyPI publishing
1 parent 9d05f54 commit 48580fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Publish
22

33
on:
44
push:
5-
tags:
6-
- '*.*.*'
75

86
# Allow job to be triggered manually.
97
workflow_dispatch:
@@ -42,16 +40,18 @@ jobs:
4240
- name: Publish distribution 📦 to Test PyPI
4341
uses: pypa/gh-action-pypi-publish@release/v1
4442
with:
45-
skip_existing: true
43+
user: __token__
4644
password: ${{ secrets.TEST_PYPI_TOKEN }}
47-
repository_url: https://test.pypi.org/legacy/
45+
skip-existing: true
46+
repository-url: https://test.pypi.org/legacy/
4847

4948
- name: Publish distribution 📦 to PyPI
5049
if: startsWith(github.ref, 'refs/tags')
5150
uses: pypa/gh-action-pypi-publish@release/v1
5251
with:
53-
skip_existing: true
52+
user: __token__
5453
password: ${{ secrets.PYPI_TOKEN }}
54+
skip-existing: true
5555

5656
#- name: publish-to-conda
5757
# if: startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)