Skip to content

Commit a656f16

Browse files
authored
Add GitHub Actions workflow for PyPI
1 parent df721b6 commit a656f16

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/pypi-publish.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish privJedAI to PyPi
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-publish:
9+
name: Build and publish Python distribution to PyPI
10+
runs-on: ubuntu-latest
11+
12+
# This environment matches the one you set up in PyPI
13+
environment:
14+
name: pypi
15+
url: https://pypi.org/p/privjedai
16+
17+
permissions:
18+
id-token: write
19+
contents: read
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.x"
29+
30+
- name: Install build dependencies
31+
run: |
32+
python -m pip install --upgrade pip
33+
pip install build
34+
35+
- name: Build binary wheel and source tarball
36+
run: python -m build
37+
38+
- name: Publish to PyPI
39+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)