Skip to content

Commit 07dfd9f

Browse files
committed
Test build and publish with testpypi
1 parent fc329af commit 07dfd9f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Build and publish to PyPI
33
on:
44
release:
55
types: [created]
6+
pull_request:
67

78
jobs:
89
build-sdist:
@@ -50,8 +51,8 @@ jobs:
5051
needs: [build-sdist, build-wheels]
5152
runs-on: ubuntu-latest
5253
environment:
53-
name: pypi
54-
url: https://pypi.org/p/ms2pip
54+
name: testpypi
55+
url: https://test.pypi.org/p/ms2pip
5556
permissions:
5657
id-token: write
5758
steps:
@@ -61,3 +62,5 @@ jobs:
6162
mv wheels-*/*.whl dist/
6263
- name: Publish to PyPI
6364
uses: pypa/gh-action-pypi-publish@release/v1
65+
with:
66+
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)