Add github release pipeline
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Marty Oehme 2023-01-14 13:29:15 +01:00
parent 676b42eec9
commit e05560a0b8
Signed by: Marty
GPG Key ID: 73BA40D5AFAF49C9
1 changed files with 20 additions and 8 deletions

View File

@ -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*