Add github release pipeline
Some checks failed
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
Marty Oehme 2023-01-14 13:29:15 +01:00
parent 676b42eec9
commit a4f4f91890
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9

View file

@ -32,6 +32,18 @@ pipeline:
event: tag event: tag
tag: v* 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: gitea_release:
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
@ -45,14 +57,14 @@ pipeline:
event: tag event: tag
tag: v* tag: v*
pypi_release: github_release:
image: python image: plugins/github-release
commands: settings:
- pip install poetry api_key:
- poetry install from_secret: github_release_token
- echo "----------------- publishing to pypi ------------------" files: dist/*
- poetry publish --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD" title: NEWEST_VERSION.md
secrets: [ pypi_username, pypi_password ] note: NEWEST_CHANGES.md
when: when:
event: tag event: tag
tag: v* tag: v*