From dc09ce4044d037da8e7254c565beeb8737e05d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Tue, 29 Nov 2022 11:16:34 +0100 Subject: [PATCH] added tag-release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Eckel --- .github/workflows/tag-release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tag-release.yml diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml new file mode 100644 index 0000000..42a5369 --- /dev/null +++ b/.github/workflows/tag-release.yml @@ -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 }}