Skip to content

Commit c16836c

Browse files
committed
release action
1 parent 99e1396 commit c16836c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
---
3+
name: Release
4+
5+
on: [push]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-python@v4
13+
- name: Install dependencies
14+
run: |
15+
python -m pip install -U pip wheel "setuptools<66.0.0" setuptools-scm twine
16+
- name: Build distributions
17+
run: python setup.py sdist bdist_wheel
18+
19+
- name: Publish to PyPI
20+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
21+
uses: pypa/gh-action-pypi-publish@master
22+
with:
23+
user: ${{ secrets.PYPI_USERNAME }}
24+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)