Skip to content

Commit b123ab5

Browse files
committed
Add release workflow
1 parent 8104a7e commit b123ab5

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release Python Package to pypi
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
id-token: write
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.10"
23+
24+
- name: Install dependencies
25+
run: pip install setuptools
26+
27+
- name: Build package
28+
run: python setup.py sdist bdist_wheel
29+
30+
- name: Publish package
31+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)