Skip to content

Commit ba1fe5a

Browse files
committed
Upgrade PyPI release to Trusted Publisher workflow
1 parent 4a21131 commit ba1fe5a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ on:
55
types: published
66

77
jobs:
8-
release:
8+
pypi-publish:
9+
name: Upload release to PyPI
910
runs-on: ubuntu-latest
10-
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/injectable
14+
permissions:
15+
id-token: write
1116
steps:
12-
- id: checkout_action
13-
uses: actions/checkout@master
14-
- name: Publish new release to PyPI
15-
uses: mariamrf/py-package-publish-action@v1.0.0
16-
with:
17-
python_version: 3.9.19
18-
env:
19-
TWINE_USERNAME: ${{ secrets.pypi_username }}
20-
TWINE_PASSWORD: ${{ secrets.pypi_password }}
17+
- id: checkout_action
18+
uses: actions/checkout@master
19+
- name: Publish package distributions to PyPI
20+
uses: pypa/gh-action-pypi-publish@v1.9.0

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changelog
22
=========
33

4-
4.0.0 (2024-07-04)
4+
4.0.0 (2024-07-12)
55
------------------
66
* Drop support for Python versions 3.6, 3.7 and 3.8
77
* Comply with PEP-593 and support typing.Annotated

0 commit comments

Comments
 (0)