Skip to content

Commit

Permalink
Upgrade PyPI release to Trusted Publisher workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
roo-oliv committed Jul 12, 2024
1 parent 4a21131 commit ba1fe5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ on:
types: published

jobs:
release:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/injectable
permissions:
id-token: write
steps:
- id: checkout_action
uses: actions/checkout@master
- name: Publish new release to PyPI
uses: mariamrf/[email protected]
with:
python_version: 3.9.19
env:
TWINE_USERNAME: ${{ secrets.pypi_username }}
TWINE_PASSWORD: ${{ secrets.pypi_password }}
- id: checkout_action
uses: actions/checkout@master
- name: Publish package distributions to PyPI
uses: pypa/[email protected]
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Changelog
=========

4.0.0 (2024-07-04)
4.0.0 (2024-07-12)
------------------
* Drop support for Python versions 3.6, 3.7 and 3.8
* Comply with PEP-593 and support typing.Annotated
Expand Down

0 comments on commit ba1fe5a

Please sign in to comment.