Skip to content

Commit 2cc6443

Browse files
committed
🔧 Add publish workflow
1 parent 50ffd30 commit 2cc6443

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: [ 3.7 ]
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install -U poetry
25+
26+
- name: Publish
27+
env:
28+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
29+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
30+
run: poetry publish --build -u "${{ env.PYPI_USERNAME }}" -p "${{ env.PYPI_PASSWORD }}"

0 commit comments

Comments
 (0)