Skip to content

Commit 9a28020

Browse files
committed
main: use Poetry to build package
1 parent 5ab09e4 commit 9a28020

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/pypipublish.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Build and Deploy
22
on:
33
push:
4-
branches:
5-
- master
64
tags:
7-
- '*'
5+
- 'v*.*.*'
86
jobs:
97
build-and-publish-python-module:
108
name: Build and publish python module to pypi
@@ -16,13 +14,7 @@ jobs:
1614
uses: actions/setup-python@v1
1715
with:
1816
python-version: 3.6
19-
- name: Add wheel dependency
20-
run: pip install wheel
21-
- name: Generate dist
22-
run: python setup.py sdist bdist_wheel
23-
- name: Publish to PyPI
24-
if: startsWith(github.event.ref, 'refs/tags')
25-
uses: pypa/gh-action-pypi-publish@master
17+
- name: Build and publish to pypi
18+
uses: JRubics/poetry-publish@v1
2619
with:
27-
user: __token__
28-
password: ${{ secrets.pypi_password }}
20+
pypi_token: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)