Skip to content

Commit 37bb7ad

Browse files
authored
ci: configure trusted publishing (#581)
1 parent 549ba45 commit 37bb7ad

2 files changed

Lines changed: 27 additions & 36 deletions

File tree

.github/workflows/python-publish.yml

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

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)