Skip to content

Commit 5700c02

Browse files
authored
Github python release workflow (#95)
* publish workflow * update workflow name
1 parent 72009cb commit 5700c02

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: release/publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
pypi:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- run: python3 -m pip install --upgrade build && python3 -m build
16+
- name: Publish package
17+
uses: pypa/gh-action-pypi-publish@release/v1
18+
with:
19+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)