Skip to content

Commit f4ee5df

Browse files
authored
Merge pull request #838 from ftnext/devin/1746664195-switch-to-pypi-trusted-publisher
Switch to PyPI Trusted publisher
2 parents 8bcaf0b + ca8d993 commit f4ee5df

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
environment: pypi
14+
permissions:
15+
id-token: write
16+
17+
steps:
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
- name: Build package
20+
run: make distribute
21+
- name: Publish package
22+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0

0 commit comments

Comments
 (0)