Skip to content

Commit cda2a86

Browse files
committed
auto publish to pypi on tag
1 parent 28f600f commit cda2a86

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release and Publish to PyPI
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.11'
17+
18+
- name: Install dependencies
19+
run: pip install -U build
20+
21+
- name: Build package
22+
run: python -m build
23+
24+
- name: Publish to PyPI
25+
uses: pypa/gh-action-pypi-publish@v1.4.2
26+
with:
27+
user: __token__
28+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)