From de743075763f1db767cb20045795951a28e5d5a8 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 9 Aug 2023 15:37:11 -0700 Subject: [PATCH] Also publish package to PyPI --- .woodpecker.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 989f1d8..3d43b69 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -9,7 +9,8 @@ steps: commands: - pip install hatch - hatch run test - publish-package: + publish-local-package: + group: publish-package image: python:3.11 commands: - pip install hatch @@ -23,6 +24,20 @@ steps: - repo: libertytechforce/http2smtp branch: master event: tag + publish-pypi-package: + group: publish-package + image: python:3.11 + commands: + - pip install hatch + - hatch build + - hatch publish --user $PYPI_USERNAME --auth $PYPI_TOKEN --no-prompt + secrets: + - pypi-username + - pypi-token + when: + - repo: libertytechforce/http2smtp + branch: master + event: tag nightly-image: image: docker commands: -- 2.40.1