Skip to content

Commit 52d4296

Browse files
committed
using trusted publisher setup to publish to pypi
1 parent 504d4ee commit 52d4296

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ jobs:
44
build-n-publish:
55
name: Build and publish to PyPI
66
runs-on: ubuntu-latest
7+
permissions:
8+
# IMPORTANT: this permission is mandatory for trusted publishing
9+
id-token: write
710
steps:
811
- uses: actions/checkout@v3
912
- name: Set up Python
@@ -26,6 +29,4 @@ jobs:
2629
.
2730
- name: Publish distribution 📦 to PyPI
2831
if: startsWith(github.ref, 'refs/tags')
29-
uses: pypa/gh-action-pypi-publish@release/v1
30-
with:
31-
password: ${{ secrets.PYPI_KEY }}
32+
uses: pypa/gh-action-pypi-publish@release/v1

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
55

66
## [Unreleased]
77

8-
- Nothing yet
8+
- Using trusted publisher setup to publish to pypi
99

1010
## [1.8.2]
1111

README.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ to install it just use pip (prefered):
4343
4444
$ pip install python-osc
4545
46-
or from the raw sources for the development version:
47-
48-
.. code-block:: bash
49-
50-
$ python setup.py test
51-
$ python setup.py install
52-
5346
Examples
5447
========
5548

0 commit comments

Comments
 (0)