Skip to content

Commit 3db2b91

Browse files
committed
Update publish process to not use twine
Publish process now uses the Trusted Platform platform that PyPI now supports when publishing from github actions.
1 parent 14f0b36 commit 3db2b91

File tree

2 files changed

+25
-33
lines changed

2 files changed

+25
-33
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
pypi-publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.x'
18+
- name: Install Dependencies
19+
run: |
20+
python -m pip install -U build
21+
- name: Build Wheel
22+
run: |
23+
python -m build --wheel
24+
- name: Publish package distributions to PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/python-publish.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)