Skip to content

Commit 25ad4cc

Browse files
committed
Use pypa/gh-action-pypi-publish action to deply to PyPI
to support Trusted Publishing #256
1 parent e546b47 commit 25ad4cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,13 @@ jobs:
105105
--title "${{ env.RELEASE_NAME }}" \
106106
$notes \
107107
$prerelease
108-
- name: Build and publish
108+
- name: Build sdist
109109
run: |
110110
if [ "$IS_PRERELEASE" == true ]; then
111111
echo "DEBUG: This is a pre-release"
112112
else
113113
echo "DEBUG: This is a final release"
114114
fi
115115
pipx run build --sdist --outdir dist/
116-
pipx run twine upload dist/*
116+
- name: Publish package distributions to PyPI
117+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)