Skip to content

Commit 309a51d

Browse files
author
Abdul Fatir Ansari
committed
Add publish to PyPi CI
1 parent d6f9baf commit 309a51d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish-to-pypi.yml

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

0 commit comments

Comments
 (0)