added tag-release workflow

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2022-11-29 11:16:34 +01:00
parent bd1cdf44e4
commit dc09ce4044
No known key found for this signature in database

30
.github/workflows/tag-release.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Deploy packages
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Setup poetry
uses: Gr1N/setup-poetry@v7
- name: Install dependencies
run: poetry install --with dev
- name: Upload to TestPyPI
run: |
poetry build
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}