Skip to content

Commit 58615c1

Browse files
committed
create publish workflow
1 parent d02bc67 commit 58615c1

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.7'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install poetry
22+
- name: Build and publish
23+
run: |
24+
poetry version $(git describe --tags --abbrev=0)
25+
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
26+
poetry build
27+
poetry publish

0 commit comments

Comments
 (0)