Skip to content

Commit 8480c6b

Browse files
authored
Merge pull request #89 from kthyng/main
release action
2 parents 99e1396 + c16836c commit 8480c6b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yaml

Lines changed: 24 additions & 0 deletions
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)