Skip to content

Commit e3e5c99

Browse files
authored
👷 added publisher
1 parent 15ed128 commit e3e5c99

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
publish:
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+
- name: Publish
26+
env:
27+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
run: poetry publish --build -u "${{ env.PYPI_USERNAME }}" -p "${{ env.PYPI_PASSWORD }}"

0 commit comments

Comments
 (0)