blob: 3701184d59a8807308d1dc5b175f85c436fb28aa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
name: Upload Tags to PyPI
on:
push:
tags:
- v**
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- uses: abatilo/actions-poetry@v2.0.0
- name: Install dependencies
run: poetry install --no-root
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry run python setup.py sdist bdist_wheel
poetry run twine upload --skip-existing dist/*
|