Skip to content

Commit f9a879c

Browse files
authored
ci: upload on PyPI using trusted publishing (#520)
Change-Id: Ie927da8fbe09caab1fae7fc368e3a9383591bdf7
1 parent bfbf173 commit f9a879c

File tree

2 files changed

+30
-34
lines changed

2 files changed

+30
-34
lines changed

.github/workflows/deploy.yaml

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

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
catname: upload release to PyPI
2+
on:
3+
release:
4+
types:
5+
- published
6+
7+
jobs:
8+
pypi-publish:
9+
name: upload release to PyPI
10+
runs-on: ubuntu-latest
11+
environment: release
12+
permissions:
13+
id-token: write
14+
contents: write
15+
steps:
16+
- uses: actions/[email protected]
17+
with:
18+
fetch-depth: 0
19+
fetch-tags: true
20+
21+
- uses: actions/[email protected]
22+
with:
23+
python-version: 3.13
24+
25+
- name: Install build
26+
run: |
27+
pip install setuptools-scm wheel
28+
29+
- name: Publish package distributions to PyPI
30+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)