Skip to content

Commit 34dbe71

Browse files
committed
Allow duplicate releases on TestPyPi
Fixes #3
1 parent 5432f9b commit 34dbe71

1 file changed

Lines changed: 21 additions & 20 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -93,23 +93,24 @@ jobs:
9393
"$GITHUB_REF_NAME" dist/**
9494
--repo "$GITHUB_REPOSITORY"
9595
96-
# publish-to-testpypi:
97-
# name: Publish to TestPyPI
98-
# runs-on: ubuntu-24.04
99-
# needs: [build]
100-
# environment:
101-
# name: testpypi
102-
# url: https://test.pypi.org/p/simplefin
103-
# permissions:
104-
# id-token: write
105-
# steps:
106-
# - name: Download distribution packages
107-
# uses: actions/download-artifact@v4
108-
# with:
109-
# name: python-packages
110-
# path: dist/
111-
# - name: Publish to TestPyPI
112-
# uses: pypa/gh-action-pypi-publish@release/v1
113-
# with:
114-
# repository-url: https://test.pypi.org/legacy/
115-
# verbose: true
96+
publish-to-testpypi:
97+
name: Publish to TestPyPI
98+
runs-on: ubuntu-24.04
99+
needs: [build]
100+
environment:
101+
name: testpypi
102+
url: https://test.pypi.org/p/simplefin
103+
permissions:
104+
id-token: write
105+
steps:
106+
- name: Download distribution packages
107+
uses: actions/download-artifact@v4
108+
with:
109+
name: python-packages
110+
path: dist/
111+
- name: Publish to TestPyPI
112+
uses: pypa/gh-action-pypi-publish@release/v1
113+
with:
114+
repository-url: https://test.pypi.org/legacy/
115+
skip-existing: true
116+
verbose: true

0 commit comments

Comments
 (0)