Skip to content

Commit 50bc3c8

Browse files
committed
[enh] added trusted publisher workflow
1 parent baf1179 commit 50bc3c8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
jobs:
2+
pypi-publish:
3+
name: Upload release to PyPI
4+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
5+
runs-on: ubuntu-latest
6+
environment:
7+
name: pypi
8+
url: https://pypi.org/p/pysodium
9+
permissions:
10+
id-token: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: '3.x'
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install build
21+
- name: Build package
22+
run: python -m build
23+
- name: Publish package distributions to PyPI
24+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)