Skip to content

Commit 04423e7

Browse files
authored
Add release workflow (#103)
1 parent 12896cf commit 04423e7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-and-pubish:
9+
name: Build and Publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
ref: ${{ github.event.release.tag_name }}
16+
- name: Install Python
17+
uses: actions/setup-python@v2
18+
- name: Install build dependencies
19+
run: python -m pip install -U setuptools build wheel
20+
- name: Build distributions
21+
run: python -m build
22+
- name: Publish
23+
uses: pypa/gh-action-pypi-publish@master
24+
with:
25+
user: __token__
26+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)