Skip to content

Commit 19dc4d6

Browse files
committed
switch to pypa/gh-action-pypi-publish
1 parent 93cba9e commit 19dc4d6

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,15 @@ jobs:
8484
python-version: '3.10'
8585

8686
- name: install
87-
run: pip install -U twine build
87+
run: pip install -U build
8888

8989
- name: check GITHUB_REF matches package version
90-
uses: samuelcolvin/check-python-version@v3
90+
uses: samuelcolvin/check-python-version@v3.1
9191
with:
9292
version_file_path: pydantic_extra_types/__init__.py
9393

9494
- name: build
9595
run: python -m build
9696

97-
- run: twine check --strict dist/*
98-
99-
- name: upload to pypi
100-
run: twine upload dist/*
101-
env:
102-
TWINE_USERNAME: __token__
103-
TWINE_PASSWORD: ${{ secrets.pypi_token }}
97+
- name: Upload package to PyPI
98+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)