Skip to content

Commit 8d7573a

Browse files
committed
🔧 CD: use PyPA publishing action instead of flit publish
As is explained here: https://docs.pypi.org/trusted-publishers/using-a-publisher/ The "easy way" to publish with PyPI's "Trusted Publisher" feature is to use PyPA's github action `pypi-publish`. Here we adapt the CD workflow to do so.
1 parent 17fd2aa commit 8d7573a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎.github/workflows/cd.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@ jobs:
4545
- name: Install flit
4646
run: pip install flit~=3.8
4747

48-
- name: Build and publish
49-
run: flit publish
48+
- name: Build with flit
49+
run: flit build
50+
51+
- name: Publish to PyPI using Trusted Publishing
52+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)