Skip to content

Commit b8a429c

Browse files
committed
add workflow to automate PyPI package release
1 parent e1a65e1 commit b8a429c

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: release pypi
2+
# when manually triggered
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release_pypi:
7+
name: PyPI release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- name: Setup python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.9
17+
18+
- name: Install poetry
19+
run: make get-poetry
20+
21+
- name: Build and publish package
22+
run: poetry publish --build --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
coveralls:
5050
name: Indicate completion to coveralls.io when all parallel jobs finished
51-
needs: build
51+
needs: test
5252
runs-on: ubuntu-latest
5353
container: python:3-slim
5454
steps:

0 commit comments

Comments
 (0)