From e05560a0b83aa0bf4f4b5556ae4ec5051837bf60 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 14 Jan 2023 13:29:15 +0100 Subject: [PATCH] Add github release pipeline --- .woodpecker.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 94ecb02..81b5f78 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -32,6 +32,18 @@ pipeline: event: tag tag: v* + pypi_release: + image: python + commands: + - pip install poetry + - poetry install + - echo "----------------- publishing to pypi ------------------" + - poetry publish --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD" + secrets: [ pypi_username, pypi_password ] + when: + event: tag + tag: v* + gitea_release: image: plugins/gitea-release settings: @@ -45,14 +57,14 @@ pipeline: event: tag tag: v* - pypi_release: - image: python - commands: - - pip install poetry - - poetry install - - echo "----------------- publishing to pypi ------------------" - - poetry publish --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD" - secrets: [ pypi_username, pypi_password ] + github_release: + image: plugins/github-release + settings: + api_key: + from_secret: github_release_token + files: dist/* + title: NEWEST_VERSION.md + note: NEWEST_CHANGES.md when: event: tag tag: v*