Skip to content

Commit aa87fde

Browse files
authored
Create publish.yml
Signed-off-by: Prakhar Shukla <SmokenX1@gmail.com>
1 parent a1ca6c9 commit aa87fde

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.10"
20+
21+
- name: Install build tools
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install --upgrade build
25+
26+
- name: Build package
27+
run: |
28+
python -m build
29+
30+
- name: Publish to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1
32+
with:
33+
user: __token__
34+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)