Skip to content

Commit 54c8395

Browse files
committed
switch to gh-actions-pypi-publish
1 parent 239e482 commit 54c8395

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
release:
1313

1414
runs-on: ubuntu-22.04
15-
# Specifying a GitHub environment is optional, but strongly encouraged
16-
environment: release
1715
permissions:
1816
# IMPORTANT: this permission is mandatory for trusted publishing
1917
id-token: write
@@ -39,7 +37,6 @@ jobs:
3937
run: python -mbuild
4038

4139
- name: Upload release
42-
run: twine upload -u "$TWINE_USERNAME" -p "$TWINE_PASSWORD" dist/*
43-
env:
44-
TWINE_USERNAME: __token__
45-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
40+
uses: pypa/gh-action-pypi-publish@release/v1
41+
with:
42+
packages-dir: dist/

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
mypy
77
build
88
setuptools>=68.2.2
9-
twine
109
wheel

0 commit comments

Comments
 (0)